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-stairsThe preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
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.
oxyn add effort-stairsUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
High
Three bars lit in ink; the line under the name gives a rough thinking budget and wait.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Max
All five lit, the top one red: no cap.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Plain
Without the budget line.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
EffortStairs
| Prop | Type | Default | Description |
|---|---|---|---|
levels | Option<Vec<EffortLevel>> | Default::default() | The scale (Low … Max when `None`). |
value | Option<usize> | Default::default() | Controlled level. |
default_value | usize | 2 | Starting level when uncontrolled. |
budget | bool | true | Show the budget line. |
on_change | EventHandler<usize> | — | The level changed. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| ←or→ · HomeorEnd | One level, or the ends |
| Pointer over a bar | Previews 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
EffortStairsfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
EffortStairsElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.