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.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | GhostEmptyStateElement | "div" | No | Root element. Prefer `div` inside table cells. |
headingLevel | GhostEmptyStateHeadingLevel | 3 | No | Heading level wrapping the `title` slot. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
actions | Optional buttons or links; not a tab stop itself. |
description | Optional supporting copy in a div wrapper. |
title | Optional heading copy. Rendered as h1–h6 from headingLevel. |
visual | Optional 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
| Name | Type | Description |
|---|---|---|
element | HTMLElement | null | Root element after mount; null before mount. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | root | Outer empty-state container. |
data-part | visual | Decorative graphic wrapper. |
data-part | title | Heading element for the title slot. |
data-part | description | Supporting copy wrapper. |
data-part | actions | Action 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
| Key | Action | Automated browser test |
|---|---|---|
Tab | Moves 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.
| 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
empty-state/basic
Title and description for an unused panel.
empty-state/filtered
Copy and an action when filters hide every row.
empty-state/table-cell
EmptyState inside a colspan cell.
empty-state/composable
useGhostEmptyState bindings on a custom host.