Skip to content
Navigation

Search

A Cmd+K command palette with backdrop, keyboard navigation, grouped results, recent searches, and a clear button - renders as a fixed-position modal.

Preview:
1280px

Props

PropTypeDefaultDescription
resultsSearchResult[][]Results to show in the panel, grouped by category.
placeholderstring'Search...'Input placeholder text.
recentSearchesstring[][]Recent search terms shown when the query is empty.
onSearch(query: string) => void-Fired on every keystroke.
onSelect(result: SearchResult) => void-Fired when a result is clicked or Enter-keyed.