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
| Prop | Type | Default | Description |
|---|---|---|---|
| results | SearchResult[] | [] | Results to show in the panel, grouped by category. |
| placeholder | string | 'Search...' | Input placeholder text. |
| recentSearches | string[] | [] | 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. |