ComboBox

A searchable text field with a custom suggestion list.

The ComboBox Component

Basic Usage

Code Snippet

<script lang="ts">		import { ComboBox, ComboBoxItem } from '$lib/components'; 		let value = $state('');		let open = $state(false);	</script> 	<ComboBox bind:value={value} bind:open={open} placeholder="Choose assignee">		<ComboBoxItem label="Emma Li" onclick={() => ((value = 'Emma Li'), (open = false))} />		<ComboBoxItem label="Mina Park" onclick={() => ((value = 'Mina Park'), (open = false))} />	</ComboBox>

Examples

Helper Copy

Use helper text when the choice affects workflow or delivery.

Choose the launch surface that should receive this campaign.