Mixins / foldkit-mixins-ui

CommandItem

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

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

Members

CommandItem.value

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

readonly value: Value

CommandItem.label

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

readonly label: string

CommandItem.description

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

readonly description?: string | undefined

A line under the label, which the query matches too.

CommandItem.keywords

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

readonly keywords?: ReadonlyArray<string> | undefined

More words the query matches, beside the label.

CommandItem.shortcut

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

readonly shortcut?: Keys | undefined

The keys that run it elsewhere: drawn at the row's end and named in aria-keyshortcuts.

CommandItem.icon

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

readonly icon?: Html | undefined

A picture before the words, such as an Icon.view.

CommandItem.opensPage

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

readonly opensPage?: boolean | undefined

It steps into a page: drawn with a chevron at its end.

CommandItem.disabled

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

readonly disabled?: boolean | undefined