1.0.0-rc.9 • Published 3 years ago

@hackr/chakra-ui-live-region v1.0.0-rc.9

Weekly downloads
-
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 @hackr/chakra-ui-live-region

Import components

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

Usage

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

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