Command

Installation

$npx shadcn-macos@latest add command

Examples

Props

<CommandPalette />
PropTypeDefaultDescription
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.
placeholderstring"Spotlight Search..."Placeholder text inside the search field.