Overview
VisuallyHidden renders a visually hidden span. Its content stays in the accessibility tree and can supply an accessible name. It accepts native span props, a span ref, and Base UI render composition. Import VisuallyHiddenProps from the same entry point.
Usage
aria-label, that attribute is another way to supply an accessible name.
Hidden content
Place supporting text inside the wrapper. Avoid placing focusable controls inside it: the wrapper stays visually hidden when its children receive focus. It does not add a live region, remove content from assistive technology, or hide confidential data. Useid to associate hidden descriptions with aria-describedby. Native attributes, className, style, and ref target the hidden span or the element supplied through render. See accessibility for labeling and announcement patterns.