mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-08 06:28:37 +00:00
25 lines
475 B
TypeScript
25 lines
475 B
TypeScript
"use client"
|
|
|
|
import { toast } from "sonner"
|
|
|
|
import { Button } from "@/styles/base-nova/ui/button"
|
|
|
|
export function SonnerDemo() {
|
|
return (
|
|
<Button
|
|
variant="outline"
|
|
onClick={() =>
|
|
toast("Event has been created", {
|
|
description: "Sunday, December 03, 2023 at 9:00 AM",
|
|
action: {
|
|
label: "Undo",
|
|
onClick: () => console.log("Undo"),
|
|
},
|
|
})
|
|
}
|
|
>
|
|
Show Toast
|
|
</Button>
|
|
)
|
|
}
|