Magoo Component UI logo Magoo Component UI
← Catalog

Model Picker

model-picker molecule experimental

A dropdown for choosing which AI model handles a conversation, with per-model descriptions and badges.

Also in: OverlaysNavigation

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default
Open

Props

NameTypeReq
models array ✓
current string ✓
label string
start_open boolean

Related components

How to use

The panel visibility is pure CSS driven by the root's data-open attribute (set from the start_open prop) and the group-data-[open=true] variants, so the open state renders with no JavaScript (and appears in screenshots). behavior.js wires interaction: the trigger toggles data-open and syncs aria-expanded; picking an option updates the trigger label, moves the check, dispatches "model:pick" with the chosen name, and closes; Escape and an outside click also close. The portable self-init reads no props object.

Use cases

overlaynav WCAG AA SEO 15 dir: both ai-generated