Skip to content

Effort listPro

A chip with the current effort that opens a plain list of levels above it, the chosen one checked.

oxyn add effort-list

Thinking effort

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

  • 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.

Terminal
oxyn add effort-list

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

Open

The list open above its chip; High is checked and highlighted.

Thinking effort

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

Closed

Closed: only the chip, its caret pointing up to where the list opens.

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

Minimal

Minimal chosen.

Thinking effort

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

EffortList

PropTypeDefaultDescription
levelsOption<Vec<EffortLevel>>Default::default()The scale (Minimal, Low, Medium, High when `None`).
valueOption<usize>Default::default()Controlled level.
default_valueOption<usize>Default::default()Starting level when uncontrolled (the last when `None`).
default_openboolDefault::default()Starts open (for previews).
headingString"Thinking effort"The menu's heading.
on_changeEventHandler<usize>—The level changed.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
↑or↓ on the chipOpens the list on the chosen level
↑or↓ · HomeorEndMoves the highlight (wraps)
EnterorSpacePicks the highlighted level and closes
EscapeCloses 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 EffortList from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: EffortListEl 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