Skip to content

CommandItem ​

Overview ​

A selectable command option within CommandList or CommandGroup.

Theme entry: CommandItem

Props ​

NameTypeRequiredDefaultDescription
themeOverrideObjectnullA partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants.
classimport('vue').HTMLAttributes['class']undefinedAdditional CSS classes to apply to the root element.
valuestring|number|boolean|objectyesThe value associated with this item.
disabledbooleanundefinedWhen true, prevents user interaction.
asstring|objectundefinedThe HTML element or component to render as.
asChildbooleanundefinedWhether to render as a child element.

Slots ​

default ​

Slot.

Events ​

NameDescription
selectEmitted when an item is selected.

Full event reference

Source ​

client/lib/controls/command/CommandItem.vue