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.

@tonal-tokensclsxtailwind-mergelucide-react

Installation

npx shadcn@latest add https://tonal.harlo.dev/r/tonal-toast.json

Dependencies

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

PropTypeDefaultDescription
titlestring—Primary notification heading.
descriptionstring—Optional detail line.
tone"neutral" | "success" | "warning" | "danger" | "info""neutral"Semantic icon accent.
durationMsnumber3600Auto-dismiss delay (0 disables auto-dismiss).