Browse the docs

Toast

Slaps onto the bottom of the screen like a stamp, then lifts off after a few seconds. The wash behind it takes its kind (red for an error, green for success), and it can celebrate or wince when it lands.

Client componentWCAG AASince v0.1

Live example

Sketch posted
Couldn’t send. Saved for later.

Change every prop live in the playground.

Props

PropTypeDefaultWhat it does
childrenrequiredReactNodenoneThe message, lettered in Sketchpop.
buddyboolean | BuddyMoodnoneA character peeks over the toast: true picks one for the kind, or name a mood.
classNamestringnoneExtra class on the toast.
kind"success" | "error" | "info"infoSets the color and icon: info, success or error.

Use it well

DoConfirm something that already happened: "Sketch posted".
Don'tAsk a question or hide a button in a toast. It disappears.

Accessibility

  • Shown in a polite live region (role="status") rendered by PlopProvider.
  • Stays 4 seconds by default; never the only place an important message appears.
Five stamps!

All aboard.

You took the whole tour. Here's Holo Pip, a foil sticker for riders who finish. It's in your playground tray now, for good.