Search Input

A search-typed input with built-in clear button, debounced onSearch callback, and a loading state. Two convenience variants ship for common patterns: CommandSearch (with a Cmd+K shortcut hint) and AutocompleteSearch (dropdown with grouping).

Command Search

A search bar that displays a keyboard shortcut and triggers when the user presses it from anywhere on the page.

k

Autocomplete Search

A search bar with a dropdown of suggestions. Supports grouping, custom filter functions, and full keyboard navigation.

Installation

Props (SearchInput)

PropTypeDefaultDescription
value
stringControlled value.
onChange
(value: string) => voidCalled as the user types.
onSearch
(value: string) => voidCalled after the debounce window.
onClear
() => voidCalled when the user clicks the clear button.
loading
booleanfalseShow a Spinner instead of the search icon.
showClearButton
booleantrueShow an X button when there's a value.
searchOnEnter
booleanfalseOnly call onSearch on Enter (skip the debounce).
debounceMs
number300Debounce window for onSearch.