- Install dependencies12s
- Type check21s
- Bundle client and server38s
- Upload to edge cache6s
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.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
open | boolean | — | No | Controlled open state forwarded to headless GhostCollapsible. |
defaultOpen | boolean | false | No | Initial open state when open is omitted. |
disabled | boolean | false | No | Disables toggling on the trigger. |
Emits
None declared.
Models
| Prop | Event | Type | Description |
|---|---|---|---|
open | update:open | boolean | v-model:open binding for controlled state. |
Slots
| Name | Description |
|---|---|
default | Collapsible trigger and content parts. |
Slot props: default
| Name | Type | Description |
|---|---|---|
open | boolean | Current open state. |
toggle | () => void | Toggles the panel open state. |
Exposed members
None declared.
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | trigger | Full-width disclosure button with surface border tokens. |
data-part | content | In-flow panel with inset padding and optional height motion. |
data-state | open | Applied on data-state while expanded. |
data-state | closed | Applied on data-state while collapsed. |
CSS variables
| Name | Description |
|---|---|
--ghost-surface-fg | Trigger and panel text color. |
--ghost-border-default | Trigger and panel borders. |
--ghost-motion-duration-moderate | Optional 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
| Key | Action | Automated browser test |
|---|---|---|
Enter | Toggles disclosure on native button triggers. | Not reviewed |
Space | Toggles 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.
| 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
collapsible/build-output
Plain themed disclosure panel inside a build summary card, so the card draws the only frame.
collapsible/release-notes
Controlled disclosure inside a release summary card with status badge and responsive rows.
collapsible/shipment-history
In-flow themed disclosure that reveals a carrier scan table and hides it after the close motion.
collapsible/themed
Default surface styles with optional motion on expand.