JSPM

@chakra-xui/live-region

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q41259F
  • License MIT

Aria live region for React components

Package Exports

  • @chakra-xui/live-region

Readme

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