CommandItem
Overview
A selectable command option within CommandList or CommandGroup.
Theme entry: CommandItem
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| themeOverride | String|Object|Array | null | A partial theme object merged with the component's default theme; accepts a class string, class array, or theme object. | |
| class | import('vue').HTMLAttributes['class'] | undefined | Additional CSS classes to apply to the root element. | |
| value | string|number|boolean|object | yes | The value associated with this item. | |
| disabled | boolean | undefined | When true, prevents user interaction. | |
| as | string|object | undefined | The HTML element or component to render as. | |
| asChild | boolean | undefined | Whether to render as a child element. |
Slots
default
Slot.
Events
| Name | Description |
|---|---|
select | Emitted when an item is selected. |
Source
client/lib/controls/command/CommandItem.vue