Skip to main content

Function: createLiveRegion()

createLiveRegion(options): HTMLElement

Defined in: src/a11y/ariaNarration.ts:65

Create (or reuse) a visually hidden aria-live region on document.body.

A region with the same id is reused rather than duplicated, so repeated calls do not stack elements.

Parameters​

options​

LiveRegionOptions = {}

Returns​

HTMLElement

The region element, or null when there is no document.