VanillaReactLight & dark952 views
A soft, tinted toast notification stack. Each toast wears a pale tinted fill, a matching border, a square icon badge, a title/message pair, and a countdown progress track. Four variants — success, error, warning, info — auto-dismiss with hover and focus pause, plus a replay trigger.
Get the code for free
Create a free account to copy or download the full source.
Toast component
A soft, tinted toast notification stack. Each toast wears a pale tinted fill, a matching border, a square icon badge, a title/message pair, and a countdown progress track. Four variants — success, error, warning, info — auto-dismiss with hover and focus pause, plus a replay trigger.
transform: scaleX(); it dims and holds while pausedshowToast({ variant, title, message }) APIaria-live="polite" role="status" aria-atomic="false" on the toast stack, with aria-atomic="true" per toast so only the new toast is announcedaria-hidden="true" decorative square icon badge<button> with an explicit aria-label and visible text label:focus-visible with --ring outline on interactive elementsprefers-reduced-motion: reduce disables all animations100dvh for mobile-safe viewport heightOpen Soft Badge Toasts in Atheros AI Builder, pick a design system and ask the AI assistant to change the layout, copy or behaviour — the toast is regenerated against your tokens. Take the HTML, CSS, JS and React source with you, or pull it into your repo from Claude Code, Cursor or Codex over MCP.
300+ production-ready components and Atheros AI models. Every paid plan includes access to the whole Atheros — AI Builder and Learning.
Starting at $9.9 per month, billed annually