Combobox

Selection & Input · Guide 27 of 46

Open the live Combobox demo →

Purpose

Input-filtered select with single or multiple values.

Import

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

The registry names Combobox 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