Effort listPro
A chip with the current effort that opens a plain list of levels above it, the chosen one checked.
oxyn add effort-listThinking effort
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.
Rendered from Rust at build time · goes live when visible
When to use
- The quietest effort control: a chip in the composer's footer showing the level, opening a plain list above it.
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 “Select effort” pill that opens a popover with the level, the model it applies to, a dotted step slider and reset: use Effort pill instead.
Installation
Effort list 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-listUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Open
The list open above its chip; High is checked and highlighted.
Thinking effort
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Closed
Closed: only the chip, its caret pointing up to where the list opens.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Minimal
Minimal chosen.
Thinking effort
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
EffortList
| Prop | Type | Default | Description |
|---|---|---|---|
levels | Option<Vec<EffortLevel>> | Default::default() | The scale (Minimal, Low, Medium, High when `None`). |
value | Option<usize> | Default::default() | Controlled level. |
default_value | Option<usize> | Default::default() | Starting level when uncontrolled (the last when `None`). |
default_open | bool | Default::default() | Starts open (for previews). |
heading | String | "Thinking effort" | The menu's heading. |
on_change | EventHandler<usize> | — | The level changed. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| ↑or↓ on the chip | Opens the list on the chosen level |
| ↑or↓ · HomeorEnd | Moves the highlight (wraps) |
| EnterorSpace | Picks the highlighted level and closes |
| Escape | Closes back to the chip |
Accessibility
- The chip is a menu button (aria-haspopup, aria-expanded) named “Thinking effort: High”.
- Levels are menuitemradio rows with aria-checked; the highlight follows aria-activedescendant.
- Focus returns to the chip after a pick or Escape.
Responsive behaviour
- 300 px list, never wider than the viewport minus 32 px.
Edge cases (spec)
300 px list capped at the viewport minus 32 px.
Notes for AI
- Import
EffortListfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
EffortListElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.