Skip to content
Design System
GitHub

Command

v0.23.0

Search and run from the keyboard: a filterable list, and the ⌘K palette that opens over any page.

API reference

Generated from the types. Every part also takes className.

CommandDialog

Also takes every prop of CommandPrimitive.

title
stringSame as labels.title, and wins over it.
open
boolean
onOpenChange
(open: boolean) => void
description
stringSame as labels.description, and wins over it.
labels
Partial<CommandDialogLabels>The words it says, to translate them.

CommandInput

Also takes every prop of CommandPrimitive.Input.

end
ReactNode

CommandCheck

checkedrequired
boolean

Other parts

  • Command takes every prop of CommandPrimitive.
  • CommandList takes every prop of CommandPrimitive.List.
  • CommandEmpty takes every prop of CommandPrimitive.Empty.
  • CommandGroup takes every prop of CommandPrimitive.Group.
  • CommandSeparator takes every prop of <div>.
  • CommandItem takes every prop of CommandPrimitive.Item.
  • CommandShortcut takes every prop of <kbd>.