2.1.0 • Published 2 years ago
@nextpy/live-region v2.1.0
Live Regions
ARIA Live Regions are used to communicate important information to screen reader software.
Installation
yarn add @chakra-ui/live-regionImport components
import { LiveRegion, useLiveRegion } from "@chakra-ui/live-region"Usage
import { useLiveRegion } from "@chakra-ui/live-region"
function Example() {
  const region = useLiveRegion()
  return (
    <button
      onClick={() => {
        region.speak("Filtering categories was successful")
      }}
    >
      Click me
    </button>
  )
}2.1.0
2 years ago