Select

Selection & Input · Guide 26 of 46

Open the live Select demo →

Purpose

Listbox-backed select with typeahead.

Import

<script lang="ts">
	import { Select } from 'bits-ui';
</script>

The registry names Select as this guide’s namespace. Copy the exact root and part composition from the live demo rather than guessing part names.

Usage checklist

  • Define the value shape, allowed range, and empty state before wiring UI.
  • Provide labels, instructions, and validation feedback.
  • Test keyboard, pointer, touch, and programmatic value changes.

Secondary reference

After using the local example, consult the upstream Bits UI reference for exhaustive API details.

Continue