Component packs › Herald › Notification Centre

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.

Notification Centre props

PropTypeDefaultDescription
itemsCentreItem[]
openbooleantrueOpen at mount. Default true.
onRead(index: number) => void

Methods on the ref

Use it in React

import NotificationCentre from './NotificationCentre';

<NotificationCentre />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Herald

Good for: Notifications and toasts.