Autocomplete

autocompleteForms

A text field with suggestions. What people type is the value, so new entries are fine; reach for Combobox when the value must come from the list.

bunx --bun shadcn@4.17.0 add @waimakers/autocomplete
Kit dependencies
utilstheme
npm dependencies
@base-ui/react@1.9.0lucide-react@1.33.0

From the registry

A text field with suggestions on Base UI's first-class Autocomplete primitive: what is typed is the value, known entries are one pick away, and nothing snaps back when the list closes. Input-family 44px field with clear and open controls; the highlighted row wears the accent WASH; the popup is the raised surface; the focus ring is --text; aria-invalid on the input draws a 2px --danger edge round the whole field.

Examples

Default

Suggest known meeting types while still accepting a new one.

New value

When nothing matches, the empty row tells people their text will be used as typed.

States

Disabled and invalid. Press Tab into the input to see the focus ring around the whole field.

Tags use letters, numbers and hyphens.