Component packs › Herald › Notification Centre
Unread items sit raised with a marker; read them and they settle down onto the sheet one after another, while new ones push in at the top.
Notification Centre is a drawer from Herald, a component pack with 6 notification components: Notifications with weight: toasts that land and get thrown, and a bell that really rings. Price: $2 for the whole pack.
Built with: settle on read, weighted drawer, insert pushes the list.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
items | CentreItem[] | ||
open | boolean | true | Open at mount. Default true. |
onRead | (index: number) => void |
readonly open: booleansetOpen(open: boolean): voidadd(item: CentreItem): voidmarkAllRead(): voiddestroy(): voidimport NotificationCentre from './NotificationCentre';
<NotificationCentre />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Notifications and toasts.