Skip to main content

LiveRegionScope

Narrows the app-wide announcer for the part of the app below it: each announcement is formatted with format, then goes to the same live regions. MapView uses it to say which map a message came from. Without format, or outside a LiveRegionProvider, the announcer is unchanged.

This is a function exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import { LiveRegionScope } from "@mapcairn/map";

function LiveRegionScope(input: LiveRegionScopeProps): JSX.Element;

Parameters​

  • { format, children }
  • input (LiveRegionScopeProps)

Returns​

JSX.Element

See also​

Source: packages/map/src/ui/LiveRegion/LiveRegion.tsx:139