Skip to main content

AnnounceOptions

Options for a single announcement.

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

Signature​

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

interface AnnounceOptions

Properties​

keep​

readonly keep?: boolean;

Speak this message even when others follow it closely. A message that is not kept is replaced by a later one that arrives before the throttle window ends, which suits a stream of updates. Set keep on a message that reports the outcome of something the person did, so a later message does not replace it. Kept messages wait their turn, one per window, in order.

priority​

readonly priority?: AnnouncePriority;

polite waits for the screen reader to finish; assertive interrupts. Defaults to polite.

See also​

Source: packages/map/src/ui/LiveRegion/announcer.ts:9