Skip to content

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.

All component references

Props ​

None declared.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultShort 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 ​

NameTypeDescription
elementHTMLSpanElement | nullThe native span after mount; null before mount and after unmount.

Parts and data attributes ​

AttributeValueDescription
data-partrootThe native span element.
data-particonOptional 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 ​

KeyActionAutomated browser test
TabDoes 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.

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

Examples ​

badge/basic ​

Example source

Basic Headless

Unstyled compact status text.

Active

badge/composable ​

Example source

Composable Headless

Same contract as GhostBadge, applied to a native host.

Draft

badge/table ​

Example source

Table and filters

Cell statuses, counts, and active-filter summaries.

Status: OpenPriority: High

Reports
NameStatusCount
Q3 revenueActive12
Q4 forecastOverdue3