Primitives
VisuallyHidden
Hides content visually while keeping it available to assistive technology.
import { VisuallyHidden } from "datui";Examples
Labeling an icon button
Accessibility
- Uses the standard
sr-onlyclip technique, so the text stays in the accessibility tree and in reading order.
API
VisuallyHidden
Hides content visually while keeping it available to screen readers.
| Prop | Type | Default | Description |
|---|---|---|---|
| as | ElementType<any, keyof IntrinsicElements> | span | |
| className | string | — |