Components
VisuallyHidden
Hides content visually while keeping it in the accessibility tree - for screen-reader-only labels and captions that must not take up layout space. RSC-safe.
Usage
Best practices
Use for screen-reader-only text (e.g. a link's full context) - for icon-only
Buttons prefer thearia-labelprop the component already requires.Never hide interactive or focusable content inside it - sighted keyboard users would tab into something they cannot see.
Props
Also exports
- component
VisuallyHidden - type
VisuallyHiddenProps
Composition
Used by