Page header
A project page header that folds into a compact bar as you scroll, with tabs whose counts roll.
A home for updates with read state, grouped information, and animated disclosure.
npx shadcn@latest add @silicon-ui/notification-centernpx shadcn@latest add @silicon-ui/notification-centerInstall the dependencies.
npm install @radix-ui/react-popover lucide-react motionCopy these files into your project. Shared files are skipped if you already have them.
components/silicon-ui/notification-center/notification-center.tsxcomponents/silicon-ui/notification-center/notification-center.module.csscomponents/silicon-ui/avatar/avatar.tsx sharedcomponents/silicon-ui/avatar/avatar.module.css sharedcomponents/silicon-ui/lib/silicon-provider.tsx sharedInstall the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation
| Prop | Type | Default |
|---|---|---|
notifications* | NotificationItem[] | — |
label | string | "Notifications" |
onReadChange | (notification: NotificationItem, read: boolean) => void | — |
onDismiss | (notification: NotificationItem) => void | — |
open | boolean | — |
onOpenChange | (open: boolean) => void | — |
avoidCollisions | boolean | true |