Skip to Content
Kokonut UI

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.

Install with
lucide-react, motion

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-selector

Or 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 motion

Usage

import AIModelSelector from "@/components/kokonutui/ai-model-selector";

export default function Example() {
  return <AIModelSelector />;
}

Props

models
ModelOption[]Default demo data
value
ModelSelection

Controlled selection. Pair with onChange.

defaultValue
ModelSelection
onChange
(value: ModelSelection) => void
defaultOpen
booleanDefault false
className
string

Extra classes for the root element.

ModelOption

idrequired
string
namerequired
string
description
string
icon
ReactNode

A mark shown before the name. Claude models get the Claude mark.

effortsrequired
EffortLevel[]

Effort levels the model supports, lowest first.

defaultEffort
string

Effort to land on when the model is picked fresh.

ModelSelection

modelrequired
string
effortrequired
string

EffortLevel

idrequired
string
labelrequired
string
hint
string

One line on the trade-off, shown under the track.

Dependencies

NeedsVersionComes from
lucide-react^0.556.0npm, installed by the CLI
motion^12.23.25npm, installed by the CLI
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.