Skip to content

CommandItem

Overview

A selectable command option within CommandList or CommandGroup.

Theme entry: CommandItem

Props

NameTypeRequiredDefaultDescription
themeOverrideString|Object|ArraynullA partial theme object merged with the component's default theme; accepts a class string, class array, or theme object.
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

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2