mediahub-fe/app/[locale]/(protected)/components/sonner/basic-sonner.tsx

26 lines
494 B
TypeScript
Raw Normal View History

2024-11-26 03:09:48 +00:00
"use client"
import { toast } from "sonner"
import { Button } from "@/components/ui/button"
const BasicSonner = () => {
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>
)
}
export default BasicSonner;