Installation
Usage
Props
Array of AI models to display in the selector. Each model should have:
id: Unique identifiername: Display nameprovider: Provider name (e.g., “OpenAI”, “Anthropic”)icon: Optional icon URLisPro: Optional boolean to show PRO badgedescription: Optional description text
The currently selected model object.
Callback function called when a model is selected. Receives the selected model object.
Whether the selector is disabled.
Additional CSS classes to apply to the root element.
Types
Features
- Model Icons: Display custom icons for each model or fallback to default AI icon
- Provider Labels: Show the AI provider with a green status indicator
- Pro Badges: Highlight premium models with animated gradient badges
- Descriptions: Optional descriptions for each model in the dropdown
- Smooth Animations: Subtle fade and scale animations when opening
- Keyboard Support: Escape key closes the dropdown
- Scroll Support: Scrollable dropdown with custom scrollbar styling
- Selected State: Visual indicator showing the currently selected model
- Dark Mode: Full support for light and dark themes
- Disabled State: Prevents interaction when disabled
Accessibility
- Semantic button elements for proper keyboard navigation
aria-labelon backdrop for screen readers- Focus indicators on interactive elements
- Disabled state properly handled
- Keyboard support (Escape to close)
- Proper button types to prevent form submission