mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-07 22:18:39 +00:00
* feat(www): add login blocks * chore(www): restructure for blocks * chore: build registry * chore: clean up chunks * fix(www): chart categories * feat(www): big registry refactor * feat(www): update blocks * feat: complex blocks * fix: update schema * feat: sync new-york and default * fix: lint * feat: move charts * fix(www): code * fix: src path * chore: rebuild registry * fix: screenshot * fix: set new-york as default
25 lines
483 B
TypeScript
25 lines
483 B
TypeScript
"use client"
|
|
|
|
import { toast } from "sonner"
|
|
|
|
import { Button } from "@/registry/default/ui/button"
|
|
|
|
export default 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>
|
|
)
|
|
}
|