About Screen Reader Only
Screen Reader Only is a utility component that visually hides content while keeping it accessible to screen readers and other assistive technologies. Use it to provide additional context or instructions that are only needed by users of assistive technology.Installation
Usage
Props
Common Use Cases
Icon Buttons
Provide accessible labels for icon-only buttons:Additional Instructions
Provide context for form fields:Status Messages
Announce status changes:Skip Links
Create skip navigation links:Custom Elements
Change the underlying HTML element:With ARIA References
Use witharia-describedby or aria-labelledby:
How It Works
Screen Reader Only uses CSS to visually hide content:- Positioned absolutely off-screen
- 1px by 1px size
- Clipped to invisible region
- Hidden overflow
When to Use
Use Screen Reader Only when:- Adding labels to icon-only buttons
- Providing additional context for assistive technology
- Creating skip links
- Announcing dynamic status changes
- Adding instructions that would clutter the visual design
When Not to Use
Don’t use Screen Reader Only when:- Content should be visible to all users
- You can use standard ARIA attributes instead
- The hidden content is the only way to understand the UI
Accessibility
- Content remains in the DOM and accessibility tree
- Works with screen readers and other assistive technology
- Does not affect keyboard navigation
- Can be used with ARIA live regions for announcements
Related components
- Visually Hidden - Box component with visibility utilities
- Text - For visible text content