Code and design work
- Context
- 200k
- Price in / out
- $3 / $15
- Median latency
- 1.2 s
- This month
- $412
Cookie settings
Your license after an unlock and your light or dark mode are stored because the site needs them. Google Analytics is optional: it only runs if you accept, and you can change your choice at any time under Cookie settings in the footer. Privacy policy
A card for choosing the model and how hard it should think: a list of models and, for the chosen one, its description, context size and price.
Claude Sonnet 5.5
The everyday model for writing, code and analysis.
Reasoning effort
Balanced — the default.
Model Select comes with WunderUI Core and Pro, in the package from your plan. See the plans.
Then import what you need:
import { ModelSelect, ModelCard } from "@wunderui/react"Then use it:
import { useState } from "react"
import { ModelSelect } from "@wunderui/react"
const models = [
{ id: "claude-opus-5-5", name: "Claude Opus 5.5", meta: "Deepest reasoning" },
{ id: "claude-sonnet-5-5", name: "Claude Sonnet 5.5", meta: "Balanced" },
{ id: "claude-haiku-5-5", name: "Claude Haiku 5.5", meta: "Fastest" },
]
export function Settings() {
const [model, setModel] = useState("claude-sonnet-5-5")
return <ModelSelect models={models} value={model} onValueChange={setModel} />
}Expected result: You see a card with three models, Sonnet chosen, its name Claude Sonnet 5.5, a Reasoning effort control on Medium and the line Balanced (the default). Click Haiku and the details follow.
The list shows each model's name and meta, and the pane beside it shows the description, spec rows and the reasoning effort. Leave out what you cannot say and the pane shrinks.
Claude Sonnet 5.5
The everyday model for writing, code and analysis.
Reasoning effort
Balanced — the default.
Claude Sonnet 5.5
The everyday model for writing, code and analysis.
Reasoning effort
Balanced — the default.
Claude Sonnet 5.5
Reasoning effort
Balanced — the default.
The card grows with the list and names wrap, so nothing scrolls or is cut off. Past five or six models, make it searchable: a field filters the list as you type.
Claude Sonnet 5.5
The everyday model for writing, code and analysis.
Reasoning effort
Balanced — the default.
Claude Opus 5.5 with extended thinking
Spends more time on hard problems and shows its reasoning. Best for research, planning and long agent runs.
Reasoning effort
Balanced — the default.
Claude Sonnet 5.5
The everyday model for writing, code and analysis.
Reasoning effort
Balanced — the default.
Claude Sonnet 5.5
The everyday model for writing, code and analysis.
Reasoning effort
Balanced — the default.
Uncontrolled, the card keeps the model and effort itself. Controlled, your values win: if you do not change them, the card stays put, which is how an app refuses a choice.
Claude Sonnet 5.5
The everyday model for writing, code and analysis.
Reasoning effort
Thinks longer on hard problems and costs more.
The card keeps the choice itself. Your code never hears of it.
Claude Sonnet 5.5
The everyday model for writing, code and analysis.
Reasoning effort
Balanced — the default.
Your state: claude-sonnet-5-5 · medium
A model's icon shows as a tile in the list. bare drops the frame for use inside a popover that has its own. ModelCard shows one model as a card with specs, a badge and an on/off switch.
Nova
Code and design work
Reasoning effort
Balanced — the default.
Code and design work
The rows are buttons in a listbox with one tab stop, and the effort is a segmented control.
Arrow keys in the list only move focus, skipping disabled rows. A model is chosen with Enter, Space or a click, and the effort options are tabs that choose as you move.
What the card does with the model, the effort and the list, and what it leaves to you.
The figure shows a card with specs and the Sonnet model chosen. Without a description or specs the details have fewer lines and no number for them.
Claude Sonnet 5.5
The everyday model for writing, code and analysis.
Reasoning effort
Balanced — the default.
A card with a 1 px border, 12 px radius and a shadow, up to 560 px wide. List and details sit side by side from a 640 px viewport and stack below it.
A listbox named Models, 208 px wide beside the details, with a divider towards them. It does not scroll, so the card grows with the list, and only one row is a tab stop.
With search on: a 32 px field named Search models above the rows. A search without a match shows No model matches.
One model as an option button: the name in 14 px medium and the meta below in 12 px. The chosen row has the subtle fill, and a disabled row is dimmed with its reason under it.
The name of the chosen model, 16 px semibold, at the top of the details.
The description of the chosen model in 12 px, if it has one.
The specs as rows of a description list: label on the left, value on the right in medium weight. Not drawn without specs.
The Reasoning effort label and a small segmented control named the same, with Low, Medium and High. The options are announced as tabs.
One 12 px line for the chosen effort: Quick answers, lowest cost; Balanced (the default); or Thinks longer on hard problems and costs more. The words are fixed.
Give each model a short meta for the list and put compared facts into specs: context window, price per 1M tokens, speed. Use the same labels for every model so values line up.
Keep the choice in your state and say what it changes, such as Applies to new chats. The card is not a form control: no name, no form value, no submit.
Disable a model that cannot be used, give a reason and keep the old value. For an unusable effort, say so next to the card and offer a way out: another model, or the plan that includes it.
Order the list the way people choose: most capable or recommended first, not alphabetically.
Don't use it for a long list without search. Rows do not scroll, so the card grows with every model; past about eight models, or when you need groups, use Combobox.
Don't rely on effort for a model that does not think longer. Effort is separate from the model and never changes when it does; reset it yourself if a model needs it.
Don't start a request when the model or effort changes. Picking is immediate with no confirmation; save when the person says so.
Don't disable a model without a reason. A dimmed row with no explanation looks like a bug; say what to do, such as Rate limit reached · back in a minute.
ModelSelect is a plain component, so this table lists every prop. A ModelOption has an id and a name, plus optional meta, description, tag, icon, specs, disabled and reason.
A card with a 1 px border, 12 px radius and a shadow, up to 560 px wide. List and details sit side by side from a 640 px viewport and stack below it.
| Prop | Type | Default | Description |
|---|---|---|---|
| models required | ModelOption[] | — | The models, in the order of the list: . is the value. shows under the name in the list; and show in the details. keeps the row visible but not choosable and says why. and belong to Model Picker and are ignored here. |
| value | string | — | The id of the chosen model, for a controlled card. If you do not change it in , the card stays where it was. |
| defaultValue | string | — | The id that starts chosen when you do not pass . The first model by default. |
| onValueChange | (id) => void | — | Called with the id of the row that was clicked, also for the row that is already chosen. |
| effort | "medium" | "low" | "high" | — | , or , for a controlled card. If you do not change it in , the effort stays where it was. |
| defaultEffort | "medium" | "low" | "high" | "medium" | The effort that starts chosen when you do not pass . by default. |
| onEffortChange | (effort) => void | — | Called with the new effort on every click and every arrow key in the effort control. |
| searchable | boolean | false | Adds a search field above the list that filters by name, meta, description and tag. Default false. |
| bare | boolean | false | Drops the border, radius and shadow of the card, for use inside a popover or sheet that has its own frame (no double frame). |
| Prop | Type | Default | Description |
|---|---|---|---|
| model required | ModelOption | — | |
| badge | ReactNode | — | Replaces the badge. Default: "Off" while turned off, else . |
| enabled | boolean | true | Whether the model is on. Default true. |
| enabledLabel | string | "On" | Text beside the switch. Default "On". |
| footer | ReactNode | — | Small print at the start of the footer, e.g. "1,204 requests". |
| onEnabledChange | (enabled) => void | — | Shows the on/off switch in the footer. |
| onSelect | () => void | — | Makes the name a button that covers the card. |
| selected | boolean | false | The model that new chats start with: primary rim and subtle background. |
| specs | [string, ReactNode][] | — | Label and value pairs in two columns. Default: . |
Give your coding assistant the Markdown reference instead of screenshots.
get_component("model-select")The full library index for assistants is at /llms.txt.