Skip to content

GhostVisuallyHidden reference ​

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

Renders content assistive technology can reach but sighted users do not see. useGhostVisuallyHidden owns the clip technique and focus-driven reveal; GhostVisuallyHidden is the thin unstyled element. There is no themed wrapper.

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

All component references

Props ​

NameTypeDefaultRequiredDescription
asGhostVisuallyHiddenElement"span"NoRendered root element. Choose the tag that is valid in the parent context. Interactive and void elements are excluded.
focusablebooleanfalseNoReveals the content while focus is inside the subtree and hides it again when focus leaves. Required whenever the slot contains anything focusable, such as a skip link.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultContent that must exist in the accessibility tree without a visual box. Keep it short; the text is announced in full.

Slot props: default ​

None declared.

Exposed members ​

None declared.

Parts and data attributes ​

AttributeValueDescription
data-partrootThe single rendered element selected by as.
data-statehiddenClip-technique hiding is applied. Omitted while focusable content is revealed.

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 focus to focusable descendants in document order. The component adds no key handling; with focusable, focusin reveals the content.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 ​

visually-hidden/action-bar ​

Example source

Document action bar Headless

Icon-only document actions named with GhostVisuallyHidden and a polite status live region.

Quarterly report.pdf

visually-hidden/basic ​

Example source

Basic Headless

Hidden text names an icon-only control.

visually-hidden/composable ​

Example source

Composable Headless

Clip-technique hiding on a native element.

visually-hidden/icon-name ​

Example source

Interpolated name Headless

Hidden text interpolates so translation tools can see it.

visually-hidden/table-header ​

Example source

Table header Headless

A real th that only assistive technology encounters.

Saved reports
ReportOwnerActions
Q3 revenuePriya

Example source

Skip link Headless

Focusable hidden content reveals while it has focus.

Skip to content

visually-hidden/live-region ​

Example source

Live region Headless

A visually hidden status that assistive technology announces.

Ready