CommandView.id
property · packages/mixins-ui/src/command.ts:84
readonly id: stringPrefixes every id the menu draws, unique on the page.
Mixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/command.ts:82
interface CommandView<Value extends string, Message> {
readonly id: string
readonly label: string
readonly placeholder?: string | undefined
readonly groups: ReadonlyArray<CommandGroup<Value>>
readonly query: string
readonly onQuery: (query: string) => NoInfer<Message>
readonly active: Option.Option<Value>
readonly onActive: (value: Value) => NoInfer<Message>
readonly onRun: (value: Value) => NoInfer<Message>
readonly loading?: boolean | undefined
readonly words?: Partial<CommandWords> | undefined
readonly page?: CommandPage<Message> | undefined
readonly routes?:
ReadonlyArray<CommandRoute<Value, NoInfer<Message>>> | undefined
readonly hints?: ReadonlyArray<CommandHint> | undefined
readonly style?: NamedStyle<typeof CommandSlots> | undefined
readonly kbd?: NamedStyle<typeof KbdSlots> | undefined
readonly mixins?: MixinList<Message> | undefined
}CommandView.idproperty · packages/mixins-ui/src/command.ts:84
readonly id: stringPrefixes every id the menu draws, unique on the page.
CommandView.labelproperty · packages/mixins-ui/src/command.ts:86
readonly label: stringThe field's accessible name.
CommandView.placeholderproperty · packages/mixins-ui/src/command.ts:87
readonly placeholder?: string | undefinedCommandView.groupsproperty · packages/mixins-ui/src/command.ts:88
readonly groups: ReadonlyArray<CommandGroup<Value>>CommandView.queryproperty · packages/mixins-ui/src/command.ts:89
readonly query: stringCommandView.onQueryproperty · packages/mixins-ui/src/command.ts:90
readonly onQuery: (query: string) => NoInfer<Message>CommandView.activeproperty · packages/mixins-ui/src/command.ts:92
readonly active: Option.Option<Value>The highlighted row, as the application keeps it.
CommandView.onActiveproperty · packages/mixins-ui/src/command.ts:93
readonly onActive: (value: Value) => NoInfer<Message>CommandView.onRunproperty · packages/mixins-ui/src/command.ts:95
readonly onRun: (value: Value) => NoInfer<Message>The Message that runs a row.
CommandView.loadingproperty · packages/mixins-ui/src/command.ts:100
readonly loading?: boolean | undefinedThe list is loading what the query asks for: it says words.loading, and
is aria-busy. The rows it holds still show, as cmdk's do.
CommandView.wordsproperty · packages/mixins-ui/src/command.ts:102
readonly words?: Partial<CommandWords> | undefinedThe fixed text: empty when nothing matches, loading while loading.
CommandView.pageproperty · packages/mixins-ui/src/command.ts:104
readonly page?: CommandPage<Message> | undefinedThe page the menu is on, when the application has stepped into one.
CommandView.routesproperty · packages/mixins-ui/src/command.ts:112
readonly routes?:
ReadonlyArray<CommandRoute<Value, NoInfer<Message>>> | undefinedKeys the application answers in the field, such as Escape clearing the query. They share one keydown owner with the menu's own (↑ ↓ PageUp PageDown Enter and Backspace): a route on the same gesture as another is a diagnostic naming both. Typing and the caret keys stay the field's; Home and End stay the caret's, as in the Combobox; add them here to move the highlight.
CommandView.hintsproperty · packages/mixins-ui/src/command.ts:114
readonly hints?: ReadonlyArray<CommandHint> | undefinedThe keys named in a footer under the list, such as ↑↓ to move and ↵ to run.
CommandView.styleproperty · packages/mixins-ui/src/command.ts:116
readonly style?: NamedStyle<typeof CommandSlots> | undefinedA style of CommandSlots, for the menu's look.
CommandView.kbdproperty · packages/mixins-ui/src/command.ts:118
readonly kbd?: NamedStyle<typeof KbdSlots> | undefinedA style of KbdSlots for shortcuts and hints (Recipes.Kbd); without one they are the keys' words.
CommandView.mixinsproperty · packages/mixins-ui/src/command.ts:120
readonly mixins?: MixinList<Message> | undefinedMixins beside the style.