Spotlight Search
A global command palette and search overlay triggered by ⌘K featuring real-time fuzzy filtering, moving active highlight springs, kbd shortcuts, and full keyboard navigation.
Keyboard-driven overlay with instant fuzzy filter and smooth spring highlight
Installation
Add the component directly to your repository using shadcn CLI:
npx shadcn@latest add Surajmaurya1/easyui/spotlight-search
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| open | boolean | false | Controlled visibility state |
| onOpenChange | (open: boolean) => void | undefined | Callback fired when modal visibility toggles |
| items | SpotlightSearchItem[] | [...] | List of searchable actions and components |
| placeholder | string | 'Search components, actions...' | Input placeholder text |
| onSelect | (item: SpotlightSearchItem) => void | undefined | Callback fired when item is chosen |