GhostCheckboxCard reference
Package: @ghostvue/themes. Status: experimental (stability policy).
Themed GhostCheckboxCard: a bordered card on the GhostCard surface tokens, with a doubled primary border and selected tint when chosen, one focus ring on the card, and forced-colors cues that do not rely on backgrounds.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
None declared.
Emits
None declared.
Models
None declared.
Slots
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
element | HTMLLabelElement | null | Card root after mount; null before mount. |
inputElement | HTMLInputElement | null | Inner checkbox input after mount; null before mount. |
focus | (options?: FocusOptions) => void | Focus the inner checkbox. |
blur | () => void | Blur the inner checkbox. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | root | Native <label> card root. Carries the selected and disabled state. |
data-part | label | Span holding the default slot. The input is named by it through aria-labelledby. |
data-part | description | Span holding the description slot, rendered only when the slot is provided. Joins the input's aria-describedby. |
data-state | checked | data-state="checked" on the root while the option is selected. Omitted otherwise. |
data-state | disabled | data-disabled on the root when the card or the group is disabled. A <fieldset disabled> ancestor does not set it; match :has(> input:disabled) for that case. |
CSS variables
None declared.
Accessibility
Role: checkbox. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/.
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.