Toast notifications are used when:
- The user does not need to be interrupted.
- The user is being informed of an event, with the option to take action.
- The results of an action are delayed.
Toasts should:
- Be brief (3 words or less, ideally)
- Rarely used for error messages
- Appear 1 at a time
If you’re providing a ton of detail on something not immediately relevant, consider a different component or method.
Notifications should contain role="status"
on the containere to signal to assistive technology that they require the user's attention. Role of status
indicates a polite live region which does not clear the screen reader's speech queue.