Combobox

Searchable combobox.

Use Combobox to select from a searchable list.

import { Combobox } from '@tile-ui/react';

export default function ComboboxDemo() {
	return (
		<Combobox
			items={[

Registry install

pnpm dlx shadcn@latest add @tile-ui/combobox

Package usage

import { Combobox } from '@tile-ui/react';
 
<Combobox
	items={[
		{ value: "apple", label: "Apple" },
		{ value: "banana", label: "Banana" },
	]}
	placeholder="Pick a fruit"
/>

Highlights

  • Search filter
  • Items with keywords
  • Empty and not-found text

Registry dependencies

ItemPurpose
comboboxComponent source and module styles
coreFramework-agnostic logic helpers
stylesShared SCSS tokens and globals

API reference

Combobox

PropTypeDefault
itemsComboboxItem[]—
valuestring—
onValueChange(value: string) => void—
placeholderstring—
searchPlaceholderstring—
emptyTextstring—
notFoundTextstring—
maxItemsnumber—
disabledboolean—
filter(item: ComboboxItem, query: string) => boolean—