GhostBadge reference
Package: @ghostvue/vue. Status: experimental (stability policy).
Headless compact status and metadata label. useGhostBadge owns styling-hook bindings; GhostBadge is the thin unstyled span. Themed visual props live on @ghostvue/themes.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
None declared.
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Short status or metadata text and optional decorative icon content. Icon-only use needs real hidden text (GhostVisuallyHidden), not aria-label on the span. |
Slot props: default
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
element | HTMLSpanElement | null | The native span after mount; null before mount and after unmount. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | root | The native span element. |
data-part | icon | Optional decorative icon content inside the default slot. |
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 | Does not land on the badge. The component is not a tab stop and adds no key handling. | 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
badge/basic
Unstyled compact status text.
badge/composable
Same contract as GhostBadge, applied to a native host.
badge/table
Cell statuses, counts, and active-filter summaries.