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

Grouped, single value

A bound string drives the trigger label while Group and GroupHeading give related options accessible structure

Submitted value: guided

Multiple values

type="multiple" changes value to string[] and keeps the list open for successive choices

Alert channels 2 selected
Email digestSlack alerts

type is required and discriminates the value shape: "single" binds a string, while "multiple" binds a string array. Supplying items gives Bits UI the value/label pairs it needs for closed-trigger typeahead and single-select form autofill.

Set name to render the hidden form input. A required select must provide both required and name. Content is portalled to document.body by default, and exposes anchor width and available-height CSS variables for collision-safe sizing.