Model Picker

NEW

A searchable AI model selector that adapts from a desktop popover to a mobile bottom sheet.

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/model-picker

API Reference

PropTypeDefaultDescription
modelsAIModel[]—Models to display, optionally grouped by provider.
valuestring—Selected model ID for controlled usage.
defaultValuestring—Initial model ID for uncontrolled usage.
onChange(id: string, model: AIModel) => void—Called when a model is selected.
variant"pill" | "field""pill"Compact composer chip or full-width labeled field.
searchableboolean | "auto""auto"Whether to show search; auto enables it for more than six models.
footerReactNode—Optional content displayed beneath the model list.
disabledbooleanfalseDisables opening the picker.