Combobox

A choice from a list, filtered as you type, for lists too long to scan.

Installation

Examples

Default

Its field is an Input, and its chevron sits where a Select's does, so the two line up in a form. On a card, as in these examples, raised lifts the list a level more.

demo.tsx

Empty message

empty is what the list says when nothing matches, "No results" by default.

empty.tsx

Sizes

The default matches a Button, and lg a large one.

sizes.tsx

Anatomy

Each part's data-slot, which a theme styles, is beside it. Combobox renders them all from its props.