Skip to content

Visually Hidden

Renders its slotted content so it’s read by screen readers but not shown on screen.

<button>
<IconOnlyGlyph />
<VisuallyHidden>Close dialog</VisuallyHidden>
</button>

No options: it takes no props beyond native attributes, just a slot.