← Inventory
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. Wraps Radix's VisuallyHidden. RSC-safe.
Usage
import { VisuallyHidden, VisuallyHiddenProps } from "@desk/ui/components/visually-hidden";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