Model Selector
A searchable command palette for selecting AI models in your chat interface.
The Model Selector component provides a searchable command palette interface for selecting AI models. It's built on top of the cmdk library and provides a keyboard-navigable interface with search functionality.
Install using CLI
Install Manually
Copy and paste the following code in the same folder.
Features
- Searchable interface with keyboard navigation
- Fuzzy search filtering across model names
- Grouped model organization by provider
- Keyboard shortcuts support
- Empty state handling
- Customizable styling with Tailwind CSS
- Built on cmdk for excellent accessibility
- Support for both inline and dialog modes
- TypeScript support with proper type definitions
Props
<ModelSelectorContent />
titlestring
'Model Selector'classstring
<ModelSelectorInput />
classstring
<ModelSelectorLogo />
providerstring
classstring
<ModelSelectorLogoGroup />
classstring
<ModelSelectorName />
classstring