Command Palette Item
@astryxdesign/core v0.7.1 · CommandPaletteItem
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | Identity of the row. Keep it unique in the list: highlight, active-descendant, and selection all resolve through it. Required. |
isDisabled | boolean | false | Blocks selection and drops the row out of the keyboard order. Sets aria-disabled. |
isHighlighted | boolean | false | Whether this row is the active keyboard result. When omitted, the row reads the state of the surrounding CommandPalette. Pass it explicitly for a standalone preview. |
isSelected | boolean | false | Whether this row holds the selected value in picker mode. When omitted, the row compares value with the palette's v-model:value. Sets aria-selected. |
Events
select(value: string): the row was activated by pointer, Enter, or Space. Inside aCommandPalettethe palette then writes the value and closes.
Slots
default: the row content. Keep it non-interactive; put icons, text, and shortcut hints here, not buttons or links.