OptionalariaOptionalcloseMake the toast closable
OptionalisSet to true to allow HTML content inside of the toast text
OptionalonProvide a function that is called when the toast is clicked
OptionalonProvide a function that is called after the toast is removed
OptionalselectorSpecify the element to attach the toast element to (for testing)
OptionaltimeoutDefines the timeout in milliseconds after which the toast is closed. Set to -1 to have a persistent toast.
OptionaltypeSet 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".