Local guide ↗ import { Combobox } from "bits-ui"

Filtered list

The input owns the query, an each/else block supplies the empty state, and the selected value remains separately bound

No deployment region selected

Multiple with chips

A string-array selection is projected into removable chips without conflating selected values with the search text

Reviewer expertise 2 selected
Accessibility Svelte

type is required: single mode binds a string and multiple mode binds a string array. Filtering is intentionally application-owned; update a query from Combobox.Input and render only matching items. The input retains DOM focus while keyboard navigation marks items with data-highlighted.

Providing name creates the hidden form input. For single mode, an items value/label array also enables browser autofill; use inputValue when an externally changed selection must force new display text. Portalled content exposes anchor-size and available-space CSS variables for sizing.