UI
SonnerToast
Stacked notification toasts with promise support, powered by Sonner.
Quick Preview
Installation
npm install sonner
// Copy component fromsrc/components/ui/SonnerToast.tsx
Usage
import SonnerToast from '@/components/ui/SonnerToast'// Wrapper around Sonner — renders a demo trigger<SonnerToast />
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
showControls | boolean | true | Show demo trigger buttons |