All registry items
primitives/r/tonal-toast.json
Tonal Toast
Calm floating notifications with semantic tones and polite aria-live announcements.
Tonal Toast
Toggle Tablet or Mobile for real isolated iframe breakpoints, or switch to Code for full source.
Installation
npx shadcn@latest add https://tonal.harlo.dev/r/tonal-toast.jsonDependencies
Tonal Registry Dependencies
npm Packages
clsxtailwind-mergelucide-react
Usage
import { useTonalToast } from "@/components/tonal/toast";
const { toast } = useTonalToast();
toast({ title: "Saved", description: "Tokens copied.", tone: "success" });Props & Tokens API
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Primary notification heading. |
| description | string | — | Optional detail line. |
| tone | "neutral" | "success" | "warning" | "danger" | "info" | "neutral" | Semantic icon accent. |
| durationMs | number | 3600 | Auto-dismiss delay (0 disables auto-dismiss). |