Skip to main content

Model Picker

Pick the model a chat answers with, grouped by provider, each with its mark, built on Base UI.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
modelsModel[]-The models to pick from, grouped by provider.
The models to pick from, grouped by provider.
defaultValuestring-The model picked at the start.
The model picked at the start.
valuestring-
onValueChange(id: string) => void-Called with the picked model's id.
Called with the picked model's id.
compactbooleanfalseOn phones the trigger shows only the mark.
On phones the trigger shows only the mark.
sizesm | md | lgsmTrigger and list size together.
Trigger and list size together.
shapenone | rounded | pillrounded
disabledbooleanfalseBlocks picking and dims the trigger.
Blocks picking and dims the trigger.
animatedbooleantrue
classNamestring-
focusboolean | stringtrue
containerHTMLElement | null-