Skip to content
AI & AgentsPro

Model Picker

The model chip in a prompt box: always clickable, it opens a popover to switch models.

Usage

Installation

bash
npm install @wunderui/react

Then import what you need:

tsx
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

PropTypeDefault
models{ id; name; description?; tag?; icon? }[]—
value / defaultValue / onValueChangestringfirst model
side"top" | "bottom""top"
align"start" | "center" | "end""start"
labelstring"Model"