Command

Overlays & Feedback

macOS Spotlight search command palette modal.

Installation

$npx shadcn-macos@latest add command

Examples

Props

<CommandPalette />
PropTypeDefaultDescription
open*booleanControls whether the Spotlight palette is open.
onOpenChange*(open: boolean) => voidOpen state callback.
items*Array<{ id: string; label: string; category?: string; icon?: React.ReactNode; shortcut?: string; onSelect: () => void }>List of searchable actions and routes.
placeholderstring"Spotlight Search..."Placeholder text inside the search field.