Select
Choose one or several options from a list.
Choose which model an agent or chat uses: grouped by vendor, with context window and cost tier, recommended models, and disabled models that keep their reason. Built on kit DropdownMenu.
Choose the model an agent uses. Not Select. Not Combobox.
Open the menu: models are grouped by vendor with context window and cost tier; disabled ones keep their reason.
ModelPicker is built on the kit DropdownMenu, so keyboard and overlay motion match. Keep unavailable models visible with their reason instead of hiding them.
import { ModelPicker } from "agentic-ds-kit";From contracts/modelpicker.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| models | array | Yes | — | { id, name, vendor?, description?, contextWindow?, costTier?, tagline?, disabled?, disabledReason?, recommended? }[] costTier is a word: "Low", "Standard" or "High" ("$" marks are optional and show as those words). |
| value | string | No | — | — |
| onValueChange | function | No | — | (id) => void |
| label | string | No | Model | — |
| hideLabel | boolean | No | false | — |
| size | sm | md | No | md | — |
| loading | boolean | No | false | — |
| error | string | No | — | The last choice stays selected. |
| onRetry | function | No | — | — |
| emptyText | string | No | — | — |