Combobox

A searchable dropdown that filters options as the user types, with single-select and multi-select (pill chip) modes.

Installation

npx dafink-ui add combobox

Demo

Type to filter. Kotlin is disabled.

TypeScriptPython

Backspace on empty input removes the last chip.

Props

NameTypeDefaultDescription
optionsComboboxOption[]-Array of { value, label, disabled? } objects.
valuestring | string[]undefinedControlled selected value.
onChange(value: string | string[]) => voidundefinedCalled when selection changes.
multiplebooleanfalseEnables multi-select mode with pill chips.
placeholderstring'Search…'Placeholder shown in the input.
labelstringundefinedVisible label above the input.
hintstringundefinedHelper text below the input.
errorstringundefinedError message; switches input to error state.
size'sm' | 'md''md'Input size.
disabledbooleanfalsePrevents all interaction.
classNamestring''Additional classes on the root wrapper.