Overlays
Spotlight
Adaptive command palette for quick navigation and actions, optimized for both keyboard and touch.
Command Palette
The Spotlight component provides a professional command palette for quick actions and navigation. It is keyboard-optimized and adapts to a touch-friendly sheet on mobile.
Properties
| Prop | Type | Default | Description |
|---|---|---|---|
isOpen | boolean | — | Controlled state of overlay visibility |
onClose | () => void | — | Callback function triggered when closing the overlay |
items | SpotlightItem[] | — | Array of item configurations with label, icon, actions, and active states |
placeholder | string | 'Type to search...' | Ghost placeholder text displayed inside empty inputs |
emptyMessage | string | 'No results found.' | Configures the emptyMessage option |