Reasoning panelPro
A model's details with a notched reasoning slider (R steps it; Max fills the bar with red dots), a Fast mode switch (F) and a Favorite button.
oxyn add reasoning-panelThe 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 details of one model next to a model list: its context length, how hard it reasons, whether Fast mode is on, and a way to keep it in favorites.
- Every control has a single-letter key so a keyboard user never leaves the list.
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 chip with the current effort that opens a plain list of levels above it, the chosen one checked: use Effort list 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
Reasoning panel 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 reasoning-panelUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
High
Mid-scale: a grey fill up to the thumb and notches marking the levels still ahead. Press R to step, F for Fast mode.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Max
At Max the bar fills with red dots, like a meter running hot, and the level name turns red.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Fast
Fast mode on and the model in favorites.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Low
The first level: no fill, every notch ahead.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
ReasoningPanel
| Prop | Type | Default | Description |
|---|---|---|---|
model | Option<PanelModel> | Default::default() | The model (the demo's when `None`). |
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. |
fast | Option<bool> | Default::default() | Controlled Fast mode. |
default_fast | bool | Default::default() | Starting Fast mode when uncontrolled. |
favorite | Option<bool> | Default::default() | Controlled favourite. |
default_favorite | bool | Default::default() | Starting favourite when uncontrolled. |
on_change | EventHandler<usize> | — | The level changed. |
on_fast_change | EventHandler<bool> | — | Fast mode flipped. |
on_favorite_change | EventHandler<bool> | — | Favorite flipped. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| R | Next reasoning level, wrapping after Max (anywhere in the panel) |
| F | Fast mode on or off (anywhere in the panel) |
| ←or→ · HomeorEnd | On the slider: one level, or the ends |
| SpaceorEnter | On the switch or Favorite: flips it |
Accessibility
- The bar is a slider named Reasoning with the level's name as its value text and R as its key shortcut.
- Fast mode is a switch (aria-checked); Favorite is a toggle button (aria-pressed).
- Single-letter keys skip when Ctrl, Cmd or Alt is held, so browser shortcuts still work.
Responsive behaviour
- 340 px panel, shrinking with its container; rows keep label left and value right.
Edge cases (spec)
340 px, shrinking with its container; rows keep label left, value right.
Notes for AI
- Import
ReasoningPanelfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
ReasoningPanelElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.