jatui

SearchDropdown

Searchable grouped dropdown with keyboard nav

Default (full-width)

Assignee

Chip variant

Dropup

Server-side search (onSearch)

Last query: (none)

Props

PropTypeDefaultDescription
valuestring""Selected value (bindable via onChange)
groupsSearchDropdownGroup[][]Grouped option list
placeholderstring"Filter…"Search input placeholder
variant"default" | "chip""default"Trigger style — chip renders a compact pill
size"sm" | "md""md"Trigger size
dropupbooleanfalseOpen panel above the trigger
appendToBodybooleanfalseFixed positioning — escapes overflow/table stacking contexts
clearablebooleanfalseShow × to clear selection
displayValuestring-Override the trigger's display text
colorFn(value) => string-Returns a CSS color for the trigger dot
embeddedbooleanfalseAlways-visible panel with no trigger button
disabledbooleanfalseDisable the dropdown
onChange(value) => void-Called on selection (required)
onSearch(query) => void-Debounced server-side search hook — bypasses internal filtering; consumer updates groups. Fires on open/clear with ''.
searchDebounceMsnumber250Debounce applied to onSearch keystrokes