All components

Components · Messages

Toast

A short message that appears, waits, and leaves.

Try itChange the motion setting at the top to feel each personality.

Use it

<Toast open={saved} onClose={() => setSaved(false)}>
  Progress saved
</Toast>

How it moves

WhenRoleWhat moves
AppearsenterFades in and rises by the enter distance, growing from the enter scale, from the bottom edge
WaitsnoneStays still for the dwell time: brief or read
LeavesexitFades out and drops by the exit distance

Rules:

Reduced motion: the enter and exit distances are 0, so the toast fades in and out where it stands. The dwell time does not change.

Screen readers: the toast is a status region, so its text is read out without moving focus.

CSS variables used: --ss-motion-enter-distance, --ss-motion-enter-spring, --ss-motion-enter-spring-duration, --ss-motion-exit-distance, --ss-motion-exit-duration, --ss-motion-exit-easing. Dwell times: --ss-motion-dwell-brief, --ss-motion-dwell-read.