A
Auralix UI

Toast

Notification message displayed temporarily.

Preview

Installation

bash
npx auralix-ui add toast

Usage

Show Toast

tsx
import { useToast } from "@/components/ui/Toast";

const { toast } = useToast();
<Button onClick={() => toast("Success!", "success")}>Show Toast</Button>

Props

NameTypeDefaultDescription
type"success" | "error" | "info" | "warning""default"The type of toast.
messagestring-The message content.
durationnumber3000Duration in ms.

Variants

Toast Types
Success Message
Error Message