A shortened and custom variation of wp.a11y.speak that is lighter on the dom.
Parameters:
Name | Type | Description |
---|---|---|
message | string | The message to announce. |
ariaLive | string | The aria-live type attribute. Assertive or polite. |
- Since
- 1.0.0
- Source
Returns:
- Type:
- void
Example
import { speak } from "@gravityforms/utils";
function Example() {
speak( i18n.example, 'polite' );
}