A notifications component for displaying system or user alerts.
Loading demo: notifications-real-world
npx sdaia-ui@latest add notifications
import { Notifications } from '@/components/ui/Notifications';<Notifications />Use surface="glass" to enable Glass Effect.
Loading demo: notifications-glass
Default notifications display.
Loading demo: notifications-default
Props for the Notifications component.
Prop | Type | Default | Required |
|---|---|---|---|
title | string | 'Notifications' | optional |
tabs | HorizontalTabItem[] | - | optional |
activeTab | string | - | optional |
onTabChange | (value: string) => void | - | optional |
onMarkAllRead | () => void | - | optional |
onClose | () => void | - | optional |
groups | NotificationGroup[] | [] | optional |
groupsByTab | Record<string, NotificationGroup[]> | - | optional |
rtl | boolean | false | optional |
How this component behaves at the three system breakpoints. Spacing and type tokens switch automatically at 768px and 1280px.
| Screen | Behavior |
|---|---|
| Desktop (1280px and up) | A panel that fills its container up to 420px wide. The list scrolls inside the panel. |
| Tablet (768–1279px) | Same layout as desktop, with the tablet token values. |
| Phone (under 768px) | The panel shrinks to the width of the screen's container, with the mobile token values. |