Feedback · ui · 6K

Sonner

Toasts as small notification windows: a modeless 1px frame with a striped mini title bar and close box, an original 16×16 icon per type, the title in the chrome face and action and cancel as push buttons. Top right and expanded by default.

Render <Toaster /> once and call toast() (re-exported from sonner). Toasts are unstyled Sonner toasts with s7 class names; your toastOptions.classNames are added to ours. expand defaults to true because a stacked toast is scaled and a scaled 1px line is no longer crisp.

Install

pnpm dlx shadcn@latest add @s7ui/sonner

Example

This example also uses @s7ui/button.

Info

Files:
components/ui/sonner.tsx
Uses:
@s7ui/theme, @s7ui/bitmap, @s7ui/button
Packages:
sonner