Skip to content

VisuallyHidden ​

A container that is visible to screen readers but visually hidden. Commonly used for assistive descriptions, form validation hints, and other accessibility scenarios.

Basic usage ​

Visually hidden text

SubmitThis form can only be submitted once. Please confirm the content is correct before submitting.

Reveal on focus (focusable) ​

With focusable, content stays visually hidden by default but appears when focused — the skip-link scenario (keyboard users Tab to a "skip to main content" link and it becomes visible). Tab to the link below to see it appear:

Reveal on focus

Skip to main content

↑ Hidden by default; appears when the link is focused via Tab

API ​

oas-visually-hidden ​

Attributes ​

AttributeDescriptionTypeDefault
focusableVisually hidden by default, revealed when content is focused (skip-link scenario)——

Slots ​

NameDescription
defaultPassed-through content, visually hidden but readable and copyable by screen readers

Note: uses the classic clip technique (position: absolute; width/height: 1px; clip, etc.) for visual hiding; purely presentational with no interactive elements and no events.

Released under the MIT OR Apache-2.0 License.