DOCS
v0.4

AI Components / Notifications

Notifications

Notification inbox with date-bucketed grouping (Today / Yesterday / This week / Earlier), left-accent unread style, pulse on new arrivals, positive empty state, and SVG dismiss icons.

ai-productionv0.5.0

Playground

Examples

Inbox with all date buckets
<ai-notification-center style="max-width:420px;"></ai-notification-center>
Empty inbox
<ai-notification-center style="max-width:420px;"></ai-notification-center>

Import

import { AiNotificationCenter } from '@cognivo/components';
// Or tree-shake: import '@cognivo/components/ai-notification-center';

Per-component imports ship only that component (~8 kB gzip).

API Reference

PropTypeDefaultDescription
notifications{id, title, message, type, timestamp, read?}[]Notification list (timestamp = ms epoch or ISO string)
max-visiblenumber50Max items rendered at once
rounded"none" | "sm" | "md" | "lg" | "full""lg"Card border-radius variant

Events

EventDetailDescription
ai-notification-click{id, notification}Notification clicked
ai-notification-dismiss{id}× clicked on a notification
ai-notification-read-all{}"Mark all read" clicked