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.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | GhostVisuallyHiddenElement | "span" | No | Rendered root element. Choose the tag that is valid in the parent context. Interactive and void elements are excluded. |
focusable | boolean | false | No | Reveals 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
| Name | Description |
|---|---|
default | Content 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
| Attribute | Value | Description |
|---|---|---|
data-part | root | The single rendered element selected by as. |
data-state | hidden | Clip-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
| Key | Action | Automated browser test |
|---|---|---|
Tab | Moves 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.
| 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
visually-hidden/action-bar
Icon-only document actions named with GhostVisuallyHidden and a polite status live region.
visually-hidden/basic
Hidden text names an icon-only control.
visually-hidden/composable
Clip-technique hiding on a native element.
visually-hidden/icon-name
Hidden text interpolates so translation tools can see it.
visually-hidden/table-header
A real th that only assistive technology encounters.
visually-hidden/skip-link
Focusable hidden content reveals while it has focus.
visually-hidden/live-region
A visually hidden status that assistive technology announces.