npx shadcn@latest add https://sdk-components.thesqd.com/r/notification.jsonimport { Notification } from "@/components/ui/notification";import { CheckCircle2Icon } from "lucide-react";
import { Notification } from "@/components/ui/notification";
export function Example() {
return (
<Notification
variant="success"
icon={<CheckCircle2Icon />}
title="File uploaded successfully"
description="You can preview it now."
/>
);
}Notification (single component — pass content as props)
├── variant="default | brand | info | success | warning | destructive"
├── icon={<LucideIcon />} (leading icon, optional)
├── title={<ReactNode>}
├── description={<ReactNode>} (optional second line)
└── action={<Button … />} (right-aligned slot, optional)
Slot exports — NotificationBody, NotificationTitle, NotificationDescription,
NotificationAction — remain as the escape hatch for unusual layouts.| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "brand" | "info" | "success" | "warning" | "destructive" | "default" | Tone — drives border tint and the leading icon color. |
icon | ReactNode | — | Leading icon — typically a lucide icon component. |
title | ReactNode | — | Heading text rendered inside the auto-emitted body. |
description | ReactNode | — | Optional second line beneath the title. |
action | ReactNode | — | Right-aligned content (button, link, etc). |
className | string | — | Override or extend the resolved variant classes. |