2.1.0 • Published 6 months ago

@packpackman/live-region v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Live Regions

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

Installation

yarn add @chakra-ui/live-region

Import 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>
  )
}