Skip to content
roguelite labsAnthony Spezzano ↗
Prompt/ModelSelector

ModelSelector

Dropdown for selecting an AI model. Shows the active model and provider badge; opens an animated popover listing models with colored dots and capability descriptions.

Use and inspectUse this as a presentational interface around your own submit, stream, or state handlers. Reset preview only remounts the local example; it does not send a request or connect to a model.Next: inspect the source and wire its callback to a bounded backend action.
ModelSelectorDropdown for selecting an AI model. Shows the active model and provider badge; opens an animated popover listing models with colored dots and capability descriptions.
npm install framer-motion
This component requires framer-motion.
PropTypeDefaultDescription
value*stringCurrently selected model id
onChange*(model: string) => voidCalled when a model is selected
modelsModelOption[]Custom model list (defaults to 5 built-in models)