Skip to content

GhostAccordion reference ​

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

Headless accordion root coordinating single or multiple expansion over GhostCollapsible items with vertical roving focus.

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

All component references

Props ​

NameTypeDefaultRequiredDescription
collapsiblebooleanfalseNoWhen `type` is `single`, allow closing the active panel.
defaultValueGhostAccordionValue—NoInitial expansion when `modelValue` is omitted.
disabledbooleanfalseNoDisables toggling on every item when `true`.
headingLevelGhostAccordionHeadingLevel3NoHeading level wrapping each accordion trigger (`h1`–`h6`).
modelValueGhostAccordionValue—NoControlled expansion value. Omit for uncontrolled mode.
typeGhostAccordionType"single"NoSingle or multiple expanded panels.

Emits ​

None declared.

Models ​

PropEventTypeDescription
modelValueupdate:modelValueGhostAccordionValuev-model binding for `modelValue`.

Slots ​

NameDescription
defaultAccordion items.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
blur() => voidExposed method `blur`.
elementHTMLElement | nullRoot element after mount; null before mount.
focus(options?: FocusOptions) => voidExposed method `focus`.

Parts and data attributes ​

AttributeValueDescription
data-partrootAccordion host and roving-focus container.

CSS variables ​

None declared.

Accessibility ​

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

Required ARIA attributes: none.

Keyboard ​

KeyActionAutomated browser test
ArrowDownMove focus to the next accordion trigger.GhostAccordion @component:GhostAccordion › navigation example keeps tab order and isolates nested headers (@ghostvue/vue)
GhostAccordion @component:GhostAccordion › arrow keys move focus between accordion triggers (@ghostvue/vue)
ArrowUpMove focus to the previous accordion trigger.GhostAccordion @component:GhostAccordion › navigation example keeps tab order and isolates nested headers (@ghostvue/vue)
GhostAccordion @component:GhostAccordion › arrow keys move focus between accordion triggers (@ghostvue/vue)
HomeFocus the first accordion trigger.GhostAccordion @component:GhostAccordion › navigation example keeps tab order and isolates nested headers (@ghostvue/vue)
EndFocus the last accordion trigger.GhostAccordion @component:GhostAccordion › navigation example keeps tab order and isolates nested headers (@ghostvue/vue)

Verification ​

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

CategoryStatusEvidence
Automated keyboardPassedEvery declared key maps to a Chromium browser test that CI runs and requires to pass on every commit.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

accordion/basic ​

Example source

Accordion sections Headless

Single expansion with collapsible coordination over panels.

Carriers schedule pickup across the west coast hubs every weekday.

accordion/navigation ​

Example source

Accordion navigation Headless

Tab order across headers and panel links; nested accordion isolation.

Read archived policy

Nested disclosure body

accordion/themed ​

Example source

Themed accordion

Multiple expansion with default surface styles.

Reserved stock releases when payment clears or the hold expires.