RRigdesign system
Feedback

Toast

A transient message that does not block the page.

Examples

Click to try: it pauses on hover and focus, and has a close button
Request sentMila will be notified.

Anatomy

Toast anatomy
#PartDescriptionPresence
1IconDecorativeRequired
2Title and messageShortRequired
3ActionOptional single actionOptional
4CloseButton with a nameRequired

Specifications

Max width360px
Min height69px (auto height)
Padding16px / 14px
Motion200ms ease-out, scale and opacity
AccessibilityARIA live region

Interaction

Keyboard
KeyResult
TabReaches the close button and action
EscDismisses the focused toast
Pointer and touch
TriggerResponse
AppearScales and fades in 200ms ease-out
Hover or focusAuto-dismiss pauses
TimeoutAt least 6 seconds, longer with an action

Accessibility

role · status

2.2.1Timing Adjustable4.1.3Status Messages
Requirements
RequirementHow Rig meets it
Live regionrole="status" container exists before the toast is added (WCAG 4.1.3)
TimingPause on hover and focus, never dismiss while the user is reading (WCAG 2.2.1)
Persist errorsErrors stay until dismissed
Max width360px; wraps instead of truncating

Read the matching WAI pattern ↗

Usage

Do and don’t
DoDon’t
Use for low-priority confirmationDo not put the only way to recover an error in a toast
Do not stack more than three