Toast
A component for displaying brief, non-intrusive notifications.
Example
Installation
npx pragatiui-cli add toast
Code Example
import { useToast } from "@/hooks/use-toast"
import { Button } from "@/components/ui/button"
const { toast } = useToast()
<Button
onClick={() =>
toast({
title: "Toast Title",
description: "This is a toast message.",
})
}
>
Show Toast
</Button>