Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

React AI Model Selector

React AI model selector component with searchable command dialog and provider logos for switching LLM models

If your app supports multiple AI models—and honestly, it probably should these days—you need a way for users to switch between them. This gives you a nice command palette (like Cmd+K menus) where users can search and pick models. Models are grouped by provider, each with their logo pulled from models.dev. The search is fuzzy so users can just type "claude" or "gpt-4" and find what they want. We use this pattern in AI playgrounds and chat apps where power users want to quickly swap between OpenAI, Anthropic, Google, whatever. Feels native and fast.

Model Selector preview

Scroll to load preview

Installation

FAQ