AI & Agents
Model Picker
The model chip in a prompt box: always clickable, it opens a popover to switch models.
Usage
Installation
npm install @wunderui/reactThen import what you need:
import { ModelPicker } from "@wunderui/react"Examples
Default
The chip shows the current model; click it to see the others.
Another model chosen
The chosen model gets the check in the list.
In a prompt box
PromptInput shows the picker in its toolbar as soon as it gets models.
API Reference
| Prop | Type | Default |
|---|---|---|
| models | { id; name; description?; tag?; icon? }[] | — |
| value / defaultValue / onValueChange | string | first model |
| side | "top" | "bottom" | "top" |
| align | "start" | "center" | "end" | "start" |
| label | string | "Model" |