Optional
ariaOptional
closeMake the toast closable
Optional
isHTMLSet to true to allow HTML content inside of the toast text
Optional
onProvide a function that is called when the toast is clicked
Optional
onProvide a function that is called after the toast is removed
Optional
selectorSpecify the element to attach the toast element to (for testing)
Optional
timeoutDefines the timeout in milliseconds after which the toast is closed. Set to -1 to have a persistent toast.
Optional
typeSet a type of {ToastType} to style the modal
Whether the messages should be announced to screen readers. See the following docs for an explanation when to use which: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions
By default, errors are announced assertive and other messages "polite".