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.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | GhostCollapsibleContentElement | "div" | No | Tag name or component rendered for the disclosure panel. |
disableAnimation | boolean | false | No | Skips theme height animations even when motion is allowed. |
variant | 'framed' | 'plain' | "framed" | No | Panel 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
| Name | Description |
|---|---|
default | Panel content. |
Slot props: default
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
element | HTMLElement | null | Panel element after mount; null before mount. |
focus | (options?: FocusOptions) => void | Focus the panel element. |
blur | () => void | Blur the panel element. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | content | In-flow disclosure panel; data-variant="plain" removes its border, radius, background, and padding. |
data-state | open | Applied on data-state while expanded. |
data-state | closed | Applied on data-state while collapsed. |
CSS variables
| Name | Description |
|---|---|
--ghost-border-default | Framed panel border. |
--ghost-motion-duration-moderate | Height 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.
| 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.