Native Solid 2 fork. Original documentation and designs © WorkOS; historical posts retain their original context.
Visually Hidden
Hides content from the screen in an accessible way.
Features
Visually hides content while preserving it for assistive technology.
Anatomy
Import the component.
Basic example
Use the visually hidden primitive.
API Reference
Root
Anything you put inside this component will be hidden from the screen but will be announced by screen readers.
Accessibility
This is useful in certain scenarios as an alternative to traditional labelling with aria-label or aria-labelledby.