Skip to content
Feedback & Data

ToastWave

Toasts ride in on a band of colour, and a small wave along the bottom drains as the time runs out. Hover or focus holds it. Call show() from the useToastWave hook.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
toasts{ id, title, description?, tone? }[]—From useToastWave(max). tone = info, success or error.
dismiss(id: number) => void—From useToastWave(max).
durationnumber4000Milliseconds a toast stays.
containedbooleanfalseStay inside the nearest positioned parent instead of the screen.
classNamestringdark glass cardReplaces the toast look.