Have ideas to improve npm?Join in the discussion! »

@chakra-ui/live-region
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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

Install

npm i @chakra-ui/live-region

DownloadsWeekly Downloads

50,702

Version

1.0.4

License

MIT

Unpacked Size

32.5 kB

Total Files

18

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar