Skip to content

GhostToggleGroupItem reference ​

Package: @ghostvue/vue. Status: experimental (stability policy).

Toggle button item with aria-pressed state inside GhostToggleGroup.

Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.

All component references

Props ​

NameTypeDefaultRequiredDescription
asGhostToggleGroupItemElement"button"NoTag name or component for the toggle control.
disabledbooleanfalseNoDisables toggling and roving focus for this item.
valuestring—YesStable value for this item in the group model.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultPrimary content.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
blur() => voidExposed method `blur`.
elementHTMLElement | nullExposed property `element`.
focus(options?: FocusOptions) => voidExposed method `focus`.

Parts and data attributes ​

AttributeValueDescription
data-partitemToggle button control.
data-stateonPressed (aria-pressed true).
data-stateoffNot pressed.

CSS variables ​

None declared.

Accessibility ​

Role: button. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/button/.

Required ARIA attributes: aria-pressed.

Keyboard ​

KeyActionAutomated browser test
SpaceToggle pressed state.Not reviewed
EnterToggle pressed state.Not reviewed

Verification ​

Each category is reviewed separately. Automated keyboard and axe results do not attest manual or assistive-technology review.

CategoryStatusEvidence
Automated keyboardNot reviewedNo declared key is mapped to a browser test yet.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

None declared.