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

PropTypeDefaultDescription
openbooleanfalseControlled visibility state
onOpenChange(open: boolean) => voidundefinedCallback fired when modal visibility toggles
itemsSpotlightSearchItem[][...]List of searchable actions and components
placeholderstring'Search components, actions...'Input placeholder text
onSelect(item: SpotlightSearchItem) => voidundefinedCallback fired when item is chosen