Toast

Sonner, unstyled, wearing the kit's skin. Pops in; warnings use a rain cloud, never red.

View as Markdown

Installation

npx shadcn@latest add @cozy/sonner

Usage

import { Toaster } from "@/components/ui/sonner"
import { toast } from "sonner"

// once, near the root
<Toaster />

toast.success("Rice harvested", { description: "+120 coins" })

Examples

Static

The same skin as plain markup.

Rice harvested+120 coins, +8 XP
Rain is comingBring the drying rice in.
A neighbour dropped byThey left a basket of sweet potatoes.