Skip to main content

LiveRegionScopeProps

Props for LiveRegionScope.

This is an interface exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import type { LiveRegionScopeProps } from "@mapcairn/map";

interface LiveRegionScopeProps

Properties​

children​

readonly children?: ReactNode;

The part of the app whose announcements format applies to.

format​

readonly format?: (text: string) => string;

Rewrites the text of every announcement made below, after a Message is formatted. Leave it out and announcements pass through unchanged.

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