GhostContextMenuCheckboxItem reference
Package: @ghostvue/vue. Status: experimental (stability policy).
Public GhostContextMenuCheckboxItem component.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | GhostContextMenuCheckboxItemElement | "div" | No | Declared prop `as`. |
checked | boolean | — | No | Declared prop `checked`. |
defaultChecked | boolean | false | No | Declared prop `defaultChecked`. |
disabled | boolean | false | No | Declared prop `disabled`. |
modelValue | boolean | — | No | Same controlled state as `checked`, so plain `v-model` works like it does on `GhostCheckbox` and `GhostSwitch`. `checked` wins when both are set. |
Emits
None declared.
Models
| Prop | Event | Type | Description |
|---|---|---|---|
checked | update:checked | boolean | v-model binding for `checked`. |
modelValue | update:modelValue | boolean | v-model binding for `modelValue`. |
Slots
| Name | Description |
|---|---|
default | Primary content. |
Slot props: default
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
blur | () => void | Exposed method `blur`. |
element | HTMLElement | null | Exposed property `element`. |
focus | (options?: FocusOptions) => void | Exposed method `focus`. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | checkbox-item | The context menu item element with role=menuitemcheckbox. |
data-state | checked | The item is checked. |
data-state | unchecked | The item is not checked. |
data-disabled | present | Present while the item is disabled, independent of the checked data-state. |
CSS variables
None declared.
Accessibility
Role: generic. APG pattern: https://www.w3.org/WAI/ARIA/apg/.
Required ARIA attributes: none.
Keyboard
None declared.
Verification
Each category is reviewed separately. Automated keyboard and axe results do not attest manual or assistive-technology review.
| Category | Status | Evidence |
|---|---|---|
| Automated keyboard | Not reviewed | No declared key is mapped to a browser test yet. |
| Manual interaction | Not reviewed | No review recorded. |
| Assistive technology | Not reviewed | No review recorded. |
Examples
None declared.