Toast

A message that appears, is announced, and leaves. Use it to confirm something that happened. Anything the user must act on belongs in a Banner, which does not disappear.

Reach for it

Telling the user something happened, after the fact.

Not for

Anything the user must act on. A toast leaves before it is read.

Queued and announced

Several at once queue rather than stack on top of each other, and the announcement is polite, so it waits for a screen reader to finish what it was saying instead of cutting in.

Over an open dialog

A failure reported while a dialog or a drawer stays open is drawn above it, so the user sees why nothing happened.

Bottom left

A viewport shows its toasts in the bottom right unless told otherwise. For a corner of its own, give it a second provider with its own queue and set the placement, so these toasts never mix with the others.

API reference

ToastProvider

Also takes the props of Base UI Toast Provider.

ToastViewport

PropTypeDefaultDescription
label*string-
closeLabel*string-
durationnumber-
placementToastPlacement-