Command

Command palette built on cmdk with dialog and input-group integration.

Default

Command Palette

Search for a command to run...

Empty State
Grouped
Inline
With Icons

Installation

npx shadcn@latest add @byronwade/command

Props

PropTypeDefaultDescription
openbooleanCommandDialog: controlled open state.
onOpenChange(open: boolean) => voidCommandDialog: fires when the dialog opens or closes.
titlestring"Command Palette"CommandDialog: visually-hidden accessible title.
descriptionstringCommandDialog: visually-hidden accessible description.
onSelect(value: string) => voidCommandItem: fires when the item is chosen via click or Enter.