◇
VisuallyHidden
3 partsVisually hides its content while keeping it available to assistive technology. The element is removed from the visual layout but stays in the accessibility tree (and remains focusable) so screen readers can still announce it. Use it for accessible labels, status text, or skip links that should be heard but not seen — for example a hidden heading, an icon-only button's name, or extra context for a control.
Demo
Loading demo…
Anatomy
Import the parts and compose them. Each part forwards attributes to its underlying element.
vue
import {
VisuallyHidden,
VisuallyHiddenInput,
VisuallyHiddenInputBubble,
} from '@robonen/primitives/utilities/visually-hidden';
<VisuallyHidden>
<VisuallyHiddenInput />
<VisuallyHiddenInputBubble />
</VisuallyHidden>