Command
Overlays & Feedback
macOS Spotlight search command palette modal.
Installation
$npx shadcn-macos@latest add command
Examples
Props
<CommandPalette />| Prop | Type | Default | Description |
|---|---|---|---|
| open* | boolean | — | Controls whether the Spotlight palette is open. |
| onOpenChange* | (open: boolean) => void | — | Open state callback. |
| items* | Array<{ id: string; label: string; category?: string; icon?: React.ReactNode; shortcut?: string; onSelect: () => void }> | — | List of searchable actions and routes. |
| placeholder | string | "Spotlight Search..." | Placeholder text inside the search field. |