@teste-ui/live-region
v2.0.4
Published
Aria live region for React components
Downloads
2
Maintainers
Readme
Live Regions
ARIA Live Regions are used to communicate important information to screen reader software.
Installation
yarn add @teste-ui/live-region
Import components
import { LiveRegion, useLiveRegion } from "@teste-ui/live-region"
Usage
import { useLiveRegion } from "@teste-ui/live-region"
function Example() {
const region = useLiveRegion()
return (
<button
onClick={() => {
region.speak("Filtering categories was successful")
}}
>
Click me
</button>
)
}