Skip to content

GhostEmptyState reference ​

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

Presentational empty region with title, description, visual, and actions slots. useGhostEmptyState supplies root and heading bindings.

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

All component references

Props ​

NameTypeDefaultRequiredDescription
asGhostEmptyStateElement"div"NoRoot element. Prefer `div` inside table cells.
headingLevelGhostEmptyStateHeadingLevel3NoHeading level wrapping the `title` slot.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
actionsOptional buttons or links; not a tab stop itself.
descriptionOptional supporting copy in a div wrapper.
titleOptional heading copy. Rendered as h1–h6 from headingLevel.
visualOptional decorative graphic. Wrapper is aria-hidden.

Slot props: actions ​

None declared.

Slot props: description ​

None declared.

Slot props: title ​

None declared.

Slot props: visual ​

None declared.

Exposed members ​

NameTypeDescription
elementHTMLElement | nullRoot element after mount; null before mount.

Parts and data attributes ​

AttributeValueDescription
data-partrootOuter empty-state container.
data-partvisualDecorative graphic wrapper.
data-parttitleHeading element for the title slot.
data-partdescriptionSupporting copy wrapper.
data-partactionsAction controls container.

CSS variables ​

None declared.

Accessibility ​

Role: generic. APG pattern: https://www.w3.org/WAI/ARIA/apg/practices/names-and-descriptions/.

Required ARIA attributes: none.

Keyboard ​

KeyActionAutomated browser test
TabMoves through focusable content in the actions slot. The root is not focusable.Not reviewed

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 ​

empty-state/basic ​

Example source

Empty state basics Headless

Title and description for an unused panel.

No reports yet

Create a report to see revenue summaries here.

empty-state/filtered ​

Example source

Filtered empty results Headless

Copy and an action when filters hide every row.

No matching rows

Nothing matches the current filters. Try clearing one or more constraints.

empty-state/table-cell ​

Example source

Empty table body Headless

EmptyState inside a colspan cell.

Quarterly revenue
RegionAmount

No rows for this quarter

Import a CSV or connect a data source to populate the table.

empty-state/composable ​

Example source

Composable empty state Headless

useGhostEmptyState bindings on a custom host.

Custom host

Composable root bindings without the SFC.