GhostTable reference
Package: @ghostvue/vue. Status: experimental (stability policy).
Headless native table root. Optional horizontal scroll containment; sub-parts supply caption, sections, rows, and cells. Themed styles live on @ghostvue/themes GhostTable.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
containHorizontal | boolean | false | No | When true, wraps the table in a scroll container for explicit horizontal overflow. The table itself never receives implicit overflow. |
scrollLabel | string | — | No | Accessible name for the horizontal scroll region. When omitted and GhostTableCaption is rendered, the scroll region uses aria-labelledby on the caption id. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | GhostTableCaption, GhostTableHead, GhostTableBody, and GhostTableFoot content. |
Slot props: default
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
element | HTMLTableElement | null | The native table after mount, or null before mount and after unmount. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | root | The native table element. |
data-part | scroll-container | Optional wrapper when containHorizontal is true. |
CSS variables
None declared.
Accessibility
Role: table. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/table/.
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
table/basic
Caption, header row, and explicit tbody semantics.
table/composable
Native table hosts with useGhostTable hooks.
table/themed
Themed seat usage table with row headers, a totals footer, and end-aligned tabular figures.