Skip to content
Back

Model pillPro

A model picker in one quiet pill: featured models with a note each, an effort submenu that snaps to levels the model accepts, every other model by provider, and a summary that confirms each change.

oxyn add model-pill

Anthropic's most capable model for long agent runs and hard problems.

Provider
Anthropic
Context
1M tokens
Input / output
$15 / $75 per 1M
Effort
High
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

  • A model picker in one quiet pill.
  • Open it to choose from featured models (the first four when none are given) with a one-line note each; Effort opens a submenu listing every level, with the ones the model does not accept disabled; More models lists every other model grouped by provider.
  • Picking a model whose effort it does not accept snaps the effort to the nearest level it does (snap; ties go lower) and reports it.
  • The pill's mark and name crossfade to the choice.

When not to use

  • Prompt composer with model picker, voice input, app connections and approval request: use Chat Composer instead.
  • The model menu of an AI chat: use Model Picker instead.
  • The prompt box for an agent, in six layouts: use Composer instead.

Installation

Model pill 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 model-pill

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

Default

Featured models, an Effort submenu and More models by provider.

Anthropic's most capable model for long agent runs and hard problems.

Provider
Anthropic
Context
1M tokens
Input / output
$15 / $75 per 1M
Effort
High
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

Pill

The pill alone, for a composer toolbar.

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

Three

Three featured: more under More models.

The everyday model: quick, capable at code and writing.

Provider
Anthropic
Context
1M tokens
Input / output
$3 / $15 per 1M
Effort
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

ModelPill

PropTypeDefaultDescription
modelsrequiredVec<PillModel>—The catalog.
providersrequiredVec<(String, String)>—Providers: id and name, in More models order.
featuredVec<String>Default::default()Featured ids, in order (the first four when empty).
show_summarybooltrueShow the summary under the pill.
nowrequiredClockMs—Shared clock (the confirmation's timing).
on_changeEventHandler<String>—Picked id.
on_effortEventHandler<String>—Effort changes (including snaps).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
EnterorSpaceor↓Open
↑or↓Move
LettersJump to a model
→or←Open / close a submenu
EscapeClose (or back out of a submenu)

Accessibility

  • Menu items are menuitemradio with aria-checked; the confirmation is role=status.
  • Reduced motion swaps everything in place.
From the spec
  • Menu items are menuitemradio with aria-checked; the confirmation is role=status.

Motion & interaction

Timing
  • Menu 160 ms; pages slide 180 ms; crossfades 200 ms.
  • Reduced motion swaps everything in place.

Responsive behaviour

  • The summary fills its container up to 360 px.
Edge cases (spec)
  • Up to 360 px.

Notes for AI

  • Import ModelPill from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: ModelPillEl in oxyn_gpui.
  • Props to set first: models, providers, now.
  • It reads a clock (now) for live timers; pass one clock for the whole page rather than one per component.
  • 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