Notification
A toast that confirms something happened, shown for a short time in the corner.
When to use
Section titled “When to use”- Use it after an action completes or fails: “Task started”, “Saved”, “Could not archive chat”.
- Things the user must deal with on this page go in an
Alertinstead.
What the consumer provides
Section titled “What the consumer provides”title: what happened, in the past tense. An optional one-linemessage.colorfor the status icon.- One optional action: “Undo”, “Try again”, “View”. A toast with an action does not close on its own.
role="status"by default.role="alert"for failures.
Behaviour
Section titled “Behaviour”- It sits bottom right on desktop and top centre on phones.
surface-100,border,shadow-md,radius-lg, max 380px wide. The status icon sits in a 32px circle on its-softtint, as inAlert. The title staysink. - It enters with a 240ms rise and fade and closes after 5s, or 10s when it has an action. Hover and focus pause it. The newest toast is at the bottom. At most three show, and older ones collapse.
- Undo beats confirm: archive at once, then show a toast with Undo. People keep moving, and a mistake is still one click from fixed.
Tokens
Section titled “Tokens”surface-100, border, shadow-md, radius-lg, success, danger, warning, info, ink, ink-muted, z-toast.
Mantine
Section titled “Mantine”notifications.show({ title, message, color: 'success', icon: <Caret/>, autoClose: 5000 }) from @mantine/notifications, with the provider positioned bottom-right and pauseResetOnHover="notification", so hover pauses only that toast. A toast with an action passes autoClose: 10000.