datui
Color scheme

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-only clip 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.

PropTypeDefaultDescription
asElementType<any, keyof IntrinsicElements>span
classNamestring—