Accessibility
By default, all toasts are diplayed with the ARIA role alert
. This can be changed globally or per toast.
- Globally
<ToastContainer role="alert" />
- Per toast
toast("hello", {
role: "alert"
})
Refer to https://www.w3.org/WAI/PF/aria/roles for more information.