Skip to content

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.

All component references

Props ​

NameTypeDefaultRequiredDescription
containHorizontalbooleanfalseNoWhen true, wraps the table in a scroll container for explicit horizontal overflow. The table itself never receives implicit overflow.
scrollLabelstring—NoAccessible 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 ​

NameDescription
defaultGhostTableCaption, GhostTableHead, GhostTableBody, and GhostTableFoot content.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
elementHTMLTableElement | nullThe native table after mount, or null before mount and after unmount.

Parts and data attributes ​

AttributeValueDescription
data-partrootThe native table element.
data-partscroll-containerOptional 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.

CategoryStatusEvidence
Automated keyboardNot reviewedNo declared key is mapped to a browser test yet.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

table/basic ​

Example source

Basic table Headless

Caption, header row, and explicit tbody semantics.

Q3 2025 invoices
InvoiceStatusAmount
INV-1042Paid$420.00
INV-1043Due$128.50

table/composable ​

Example source

Composable Headless

Native table hosts with useGhostTable hooks.

PlanSeats
Pro12

table/themed ​

Example source

Summary table with totals

Themed seat usage table with row headers, a totals footer, and end-aligned tabular figures.

Seat usage by team
Team Used Seats
Design810
Engineering2430
Support66
Total3846