Skip to content

Effort stairsPro

An Oxyn original: one rising bar per level, lit up to the chosen one (the top in red); pointing at a bar previews its thinking budget and wait.

oxyn add effort-stairs
High≈ 4k thinking tokens · ~8 s
The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • Show what each effort level costs before picking it: rising bars, one per level, and a rough budget line for the level under the pointer.

When not to use

  • A card with the effort's name and what it does over a dense tick ruler: use Ruler card instead.
  • A model's details with a notched reasoning slider (R steps it: use Reasoning panel instead.
  • A chip with the current effort that opens a plain list of levels above it, the chosen one checked: use Effort list instead.

Installation

Effort stairs is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add effort-stairs

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

High

Three bars lit in ink; the line under the name gives a rough thinking budget and wait.

High≈ 4k thinking tokens · ~8 s
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Max

All five lit, the top one red: no cap.

MaxNo cap · as long as it needs
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Plain

Without the budget line.

Medium
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

EffortStairs

PropTypeDefaultDescription
levelsOption<Vec<EffortLevel>>Default::default()The scale (Low … Max when `None`).
valueOption<usize>Default::default()Controlled level.
default_valueusize2Starting level when uncontrolled.
budgetbooltrueShow the budget line.
on_changeEventHandler<usize>—The level changed.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
←or→ · HomeorEndOne level, or the ends
Pointer over a barPreviews that level's budget

Accessibility

  • The bars are one slider; each bar is a click target, the slider's value text is the level's name.
  • The budget preview on hover is extra; the chosen level is always said in the status line.

Responsive behaviour

  • 300 px card; bars share the width.
Edge cases (spec)

300 px card; bars share the width.

Notes for AI

  • Import EffortStairs from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: EffortStairsEl in oxyn_gpui.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI