Skip to content

GhostCollapsible reference ​

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

Themed wrapper around headless GhostCollapsible, GhostCollapsibleTrigger, and GhostCollapsibleContent. Importing from @ghostvue/themes loads default disclosure surface styles.

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

All component references

Props ​

NameTypeDefaultRequiredDescription
openboolean—NoControlled open state forwarded to headless GhostCollapsible.
defaultOpenbooleanfalseNoInitial open state when open is omitted.
disabledbooleanfalseNoDisables toggling on the trigger.

Emits ​

None declared.

Models ​

PropEventTypeDescription
openupdate:openbooleanv-model:open binding for controlled state.

Slots ​

NameDescription
defaultCollapsible trigger and content parts.

Slot props: default ​

NameTypeDescription
openbooleanCurrent open state.
toggle() => voidToggles the panel open state.

Exposed members ​

None declared.

Parts and data attributes ​

AttributeValueDescription
data-parttriggerFull-width disclosure button with surface border tokens.
data-partcontentIn-flow panel with inset padding and optional height motion.
data-stateopenApplied on data-state while expanded.
data-stateclosedApplied on data-state while collapsed.

CSS variables ​

NameDescription
--ghost-surface-fgTrigger and panel text color.
--ghost-border-defaultTrigger and panel borders.
--ghost-motion-duration-moderateOptional content height transition duration.

Accessibility ​

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

Required ARIA attributes: aria-expanded, aria-controls.

Keyboard ​

KeyActionAutomated browser test
EnterToggles disclosure on native button triggers.Not reviewed
SpaceToggles disclosure on native button triggers.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 ​

collapsible/build-output ​

Example source

Build steps in a card

Plain themed disclosure panel inside a build summary card, so the card draws the only frame.

Build #1482main · 4 steps · 1m 17s
Succeeded
  1. Install dependencies12s
  2. Type check21s
  3. Bundle client and server38s
  4. Upload to edge cache6s
Open the full log

collapsible/release-notes ​

Example source

Release verification log

Controlled disclosure inside a release summary card with status badge and responsive rows.

Release v2.14.0 3 verification checks completed
Ready to promote
  • Unit & accessibility suite18s · Passed
  • Bundle size budget4s · Passed
  • Visual regression (Linux)42s · Passed

collapsible/shipment-history ​

Example source

Shipment scan history

In-flow themed disclosure that reveals a carrier scan table and hides it after the close motion.

Order 48213 Out for delivery · 4 carrier scans
Delivery window: today, 2–6 PM.

collapsible/themed ​

Example source

Themed collapsible

Default surface styles with optional motion on expand.