Mixins / foldkit-mixins-ui

CommandItem

interface · packages/mixins-ui/src/command.ts:39

interface CommandItem<Value extends string> {
  readonly value: Value
  readonly label: string
  readonly keywords?: ReadonlyArray<string> | undefined
  readonly shortcut?: string | undefined
  readonly disabled?: boolean | undefined
}

Members

CommandItem.value

property · packages/mixins-ui/src/command.ts:40

readonly value: Value

CommandItem.label

property · packages/mixins-ui/src/command.ts:41

readonly label: string

CommandItem.keywords

property · packages/mixins-ui/src/command.ts:43

readonly keywords?: ReadonlyArray<string> | undefined

More words the query matches, beside the label.

CommandItem.shortcut

property · packages/mixins-ui/src/command.ts:45

readonly shortcut?: string | undefined

The keys that run it elsewhere, shown at the row's end.

CommandItem.disabled

property · packages/mixins-ui/src/command.ts:46

readonly disabled?: boolean | undefined