AI-19AIUpdated, November 16, 2026
AI Model Selector
Pick a model and how hard it thinks. Effort is a detent track that reshapes for each model and keeps your level when you switch.
PROSlash Command Menu and more like it are in Kokonut UI Pro
Installation
AI Model Selector is a free, open-source React component in the Kokonut UI AI collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/ai-model-selector.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/ai-model-selectorOr add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/ai-model-selector.tsx.
npm install lucide-react motionUsage
import AIModelSelector from "@/components/kokonutui/ai-model-selector";
export default function Example() {
return <AIModelSelector />;
}Props
modelsModelOption[]Default demo datavalueModelSelectionControlled selection. Pair with onChange.
defaultValueModelSelectiononChange(value: ModelSelection) => voiddefaultOpenbooleanDefault falseclassNamestringExtra classes for the root element.
ModelOption
idrequiredstringnamerequiredstringdescriptionstringiconReactNodeA mark shown before the name. Claude models get the Claude mark.
effortsrequiredEffortLevel[]Effort levels the model supports, lowest first.
defaultEffortstringEffort to land on when the model is picked fresh.
ModelSelection
modelrequiredstringeffortrequiredstringEffortLevel
idrequiredstringlabelrequiredstringhintstringOne line on the trade-off, shown under the track.
Dependencies
| Needs | Version | Comes from |
|---|---|---|
lucide-react | ^0.556.0 | npm, installed by the CLI |
motion | ^12.23.25 | npm, installed by the CLI |
cn from lib/utils.ts | shadcn init | |
| React | 19 | Your app |
| Tailwind CSS | 4 | Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.

