Description
react-aria-live is a React library for sending ARIA live messages to screen readers from anywhere in an app. Screen readers do not always announce changes made with JavaScript, such as a route change or an error message that appears on screen, so this library gives you a way to announce them. It exports three components: LiveAnnouncer, which you wrap around your app to render a visually hidden message area; LiveMessage, which sends a message from a component; and LiveMessenger, which is the third option listed in the README. LiveAnnouncer should sit as high in the component tree as possible, because live regions are sensitive to changes in the HTML that renders them. The library uses a double announcer region approach, which the README says was inspired by ngA11y.…
Highlights
- ARIA live announcements from any component
- LiveAnnouncer wrapper component
- LiveMessage and LiveMessenger components
- Works with React 16.3 and later
Ratings & Reviews
No ratings yet
Be the first to rate react-aria-live.
People also visit
react-aria-live FAQ
What is react-aria-live?
A React library for broadcasting aria-live messages to screen readers from any part of an app.
How do I install it?
The README has an installation section with the npm and yarn commands.
How do I use it?
Wrap your app in LiveAnnouncer, then send messages from any component with LiveMessage or LiveMessenger.
Which React versions does it support?
Version 2.0 and later no longer support the context API used before React 16.3. Older React projects should use the latest 1.x release.
Why is it needed?
Screen readers often miss changes made by JavaScript, such as route changes or new error messages. This library announces them.
What are the best react-aria-live alternatives?
Popular alternatives to react-aria-live include React Aria (jolly-ui), @polymer/iron-a11y-announcer and react-hot-toast. See all react-aria-live alternatives














