Component
Toast
Toast notifications powered by sonner
Toast (sonner)
Toast notifications built on top of the sonner library.
Installation
bash
liminal add sonner
Usage
tsx
import { Toaster, toast } from "@/components/ui/sonner";
import { Button } from "@/components/ui/button";
export default function Example() {
return (
<>
<Toaster />
<Button
onClick={() => toast("Settings saved", {
description: "Your preferences have been updated.",
})}
>
Show toast
</Button>
</>
);
}