Browse components
ChatComponent
Model Selector
Searchable model picker for AI chat: a dialog opened from any trigger that hosts a cmdk command palette with a whole-term search input, grouped items, separators, keyboard-shortcut hints, an announced empty state, and decorative provider logos from models.dev or a custom src (ModelSelectorLogo, ModelSelectorLogoGroup, ModelSelectorName). Use to switch the model behind a conversation or prompt input.
pnpm dlx shadcn@latest add @uifiles/model-selector
Pick a model
A command palette in a dialog. Pick a model and the trigger updates; the search matches whole terms in the id, name and provider. The logos are inline placeholders passed through src, so the page makes no request to models.dev.
Selected:
openai/gpt-4o