@smui/common
Version:
Svelte Material UI - Common
12 lines (11 loc) • 391 B
TypeScript
/**
* A screen reader announcer, compatible with the announce function from
* @material/dom/announce.js.
*
* @param message The text to announce with the screen reader.
* @param options The options, including "priority" and "ownerDocument".
*/
export declare function announce(message: string, options?: {
priority?: 'polite' | 'assertive';
ownerDocument?: Document;
}): void;