CommandItem
Defined in: src/components/feedback/CommandPalette/CommandPalette.types.ts:5
Properties
Section titled “Properties”description?
Section titled “description?”
optionaldescription?:string
Defined in: src/components/feedback/CommandPalette/CommandPalette.types.ts:11
Optional secondary description.
disabled?
Section titled “disabled?”
optionaldisabled?:boolean
Defined in: src/components/feedback/CommandPalette/CommandPalette.types.ts:21
When true, the item is rendered but cannot be selected.
group?
Section titled “group?”
optionalgroup?:string
Defined in: src/components/feedback/CommandPalette/CommandPalette.types.ts:13
Group name for sectioning the list. Items without a group go into “default”.
optionalicon?:ReactNode
Defined in: src/components/feedback/CommandPalette/CommandPalette.types.ts:15
Leading icon.
id:
string
Defined in: src/components/feedback/CommandPalette/CommandPalette.types.ts:7
Stable unique identifier — used for keys and the recent list.
keywords?
Section titled “keywords?”
optionalkeywords?:string[]
Defined in: src/components/feedback/CommandPalette/CommandPalette.types.ts:19
Extra strings used by the fuzzy matcher in addition to label/description.
label:
string
Defined in: src/components/feedback/CommandPalette/CommandPalette.types.ts:9
Visible label.
onSelect?
Section titled “onSelect?”
optionalonSelect?: () =>void
Defined in: src/components/feedback/CommandPalette/CommandPalette.types.ts:23
Callback fired when this item is chosen. Falls back to top-level onSelect.
Returns
Section titled “Returns”void
shortcut?
Section titled “shortcut?”
optionalshortcut?:string
Defined in: src/components/feedback/CommandPalette/CommandPalette.types.ts:17
Keyboard shortcut to display (e.g. “Cmd+S”).