Notifications
A notifications component for displaying system or user alerts.
<Notifications groups={[ { label: 'Today', items: [ { type: 'text', title: 'Layla Al-Harbi', subtext: '2 min ago', helperText: 'Left a comment on your report', unread: true }, ]},Installation
npx sdaia-ui@latest add notifications
Usage
import { Notifications } from "@/components/ui/notifications"<Notifications />Examples
Default
Default notifications display.
<Notifications groupsByTab={{ all: [ { label: 'Today',API Reference
NotificationsProps
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 |