ModelSelector
A compact model picker: each model with its description, and a check on the current one.
Good to know
- The search field shows only for more than seven models; pass
searchableto choose. - Provider headings show only when the models come from more than one provider.
- The current model has a check, not a radio circle; arrow keys still move between models.
Used in Settings and billing.
- Use it for
- Picking the model for the next request.
- Not for
- Settings beyond the model. Try ModelControls.
ModelSelector preview
Loading example…
Installation
npm install @stackunseen/uiimport { ModelSelector } from '@stackunseen/ui/assistant';Styles:
@stackunseen/ui/styles.cssUsage and props
Check the chosen model on your server when the request runs.
Supported inputs
This is the public signature used by this example. Open Code to see how the values and callbacks fit together.
models · value · onValueChange · label? · disabled?All props
Loading…
For your coding agent
Give the agent this page instead of a screenshot. The prompt wraps the page with the install and import lines and the rule that your server, not a click, completes an action.
- Contract
- models · value · onValueChange · label? · disabled?
- Keeps honest
- Check the chosen model on your server when the request runs.
- MCP
read_component "ModelSelector"on the docs endpoint
Keyboard and customization
Keyboard
Enter opens the list; arrow keys move between models; Escape closes.
Customization
Change shared colors, spacing, corners and icons with the theme. Use the component's supported props to adapt its content and layout. Customization guide and Theme Studio