l2logic2b/ui

Sonner

An opinionated toast component.

Installation

npx logic2b@latest add sonner

Usage

Add the Toaster component once, then call toast() from anywhere.

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

<Toaster />
import { toast } from "sonner"

toast("Event has been created")