Combobox

Allow users to choose from a list of options with search filtering functionality.

Basic Example

<script>
	import { Combobox, ComboboxInput, ComboboxContent, ComboboxOption, ComboboxArrow } from 'lithesome';
</script>

<Combobox>
	<ComboboxInput />
	<ComboboxContent>
		<ComboboxArrow />
		<ComboboxOption />
	</ComboboxContent>
</Combobox>

Multiple selected options

If you need to have a multiple selected at once, change the value prop to any form of an array.
The component will then detect the array and append the selected options.

<script>
	import { Combobox, ComboboxInput, ComboboxContent, ComboboxOption } from 'lithesome';

	let value = $state([]);
	let query = $state('');
</script>

<Combobox bind:value>
	<ComboboxInput bind:query />
	<ComboboxContent>
		<ComboboxOption value="hamburger" />
		<ComboboxOption value="cheeseburger" />
	</ComboboxContent>
</Combobox>