Dropdown Menu Checkbox Item
@astryxdesign/core v0.7.1 · DropdownMenuCheckboxItem
Props
| Name | Type | Default | Description |
|---|---|---|---|
modelValue | boolean | - | Whether the row is checked. Pair it with v-model. The data array uses checked instead. |
label | string | number | - | Primary text. Use the label slot for rich content. |
description | string | number | - | Secondary line under the label. |
icon | string | Component | - | Icon before the label: a CSS icon class, or a component that draws one. Use the icon slot for anything else. |
isDisabled | boolean | false | Disables the row. It stays in the accessibility tree, the arrows skip it, and a click does not toggle it. |
hasCloseOnSelect | boolean | false | Whether toggling closes the menu. Checkbox rows stay open. |
The row's role is menuitemcheckbox, and the checked state is aria-checked. The mark is decorative and does not take the click. Trailing content such as a shortcut hint goes in the endContent slot.