Skip to main content
  1. Docs
  2. Components
  3. Type

Visually hidden

Content for screen readers only: read, never shown. Never display: none.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<span>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • Words a picture or a layout already says to the eye.
  • A status announced once.
Not for

02

Anatomy

  1. 1visually-hidden<span>Clipped to 1px: read, not seen.

03

Do and don't

Not for what everyone needs
DoAn error shown, and read with its field.
Don'tAn error only a screen reader hears: the sighted see nothing wrong.

04

Content

  • Only what the eye already gets another way.
  • Write it as it's heard: 1,284 users.
Next — Visually hiddenAPI