Skip to content

GhostCollapsibleContent reference ​

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

Themed GhostCollapsibleContent disclosure panel. The framed variant draws the bordered, padded panel under its trigger; the plain variant drops the frame for a panel inside a card or code block.

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

All component references

Props ​

NameTypeDefaultRequiredDescription
asGhostCollapsibleContentElement"div"NoTag name or component rendered for the disclosure panel.
disableAnimationbooleanfalseNoSkips theme height animations even when motion is allowed.
variant'framed' | 'plain'"framed"NoPanel frame. `framed` draws the border, radius, and inset padding. `plain` draws none of them and no background, for a panel inside a surface that already frames it. Height motion and `hidden` timing are the same for both. The default omits `data-variant`.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultPanel content.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
elementHTMLElement | nullPanel element after mount; null before mount.
focus(options?: FocusOptions) => voidFocus the panel element.
blur() => voidBlur the panel element.

Parts and data attributes ​

AttributeValueDescription
data-partcontentIn-flow disclosure panel; data-variant="plain" removes its border, radius, background, and padding.
data-stateopenApplied on data-state while expanded.
data-stateclosedApplied on data-state while collapsed.

CSS variables ​

NameDescription
--ghost-border-defaultFramed panel border.
--ghost-motion-duration-moderateHeight transition duration for both variants.

Accessibility ​

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

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.

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.