1.0.2 • Published 3 years ago

@chakra-xui/live-region v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

Live Regions

ARIA Live Regions are used to communicate important information to screen reader software.

Installation

yarn add @chakra-xui/live-region

Import components

import { LiveRegion, useLiveRegion } from "@chakra-xui/live-region"

Usage

import { useLiveRegion } from "@chakra-xui/live-region"

function Example() {
  const region = useLiveRegion()
  return (
    <button
      onClick={() => {
        region.speak("Filtering categories was successful")
      }}
    >
      Click me
    </button>
  )
}