A live status indicator for services and deploys: the dot blends between colours and pulses softly only when something needs attention.
A bell that swings when something new arrives, with a popping unread badge and a panel of notifications you can swipe away.
Customize
Usage
import { NotificationBell } from "@/components/motionkit/notification-bell";
// add to the list (newest first) and the bell swings and announces it
<NotificationBell
notifications={[
{ id: "1", title: "Deploy finished", body: "main is live in 42s.", time: "2m" },
{ id: "2", title: "Ada commented", body: "“Love the new hero.”", time: "1h" },
]}
onDismiss={(id) => markRead(id)}
/>Motion
The exact curves this component runs, plotted with Motion's own maths.
Bell swings
New notification
Badge pops
Unread count changes
Panel opens
Click the bell
App headers and dashboards, admin panels, SaaS products, community and messaging apps.
The component remembers which notification ids it has seen; when a new one appears in the list, the bell plays a damped swing from its top and the badge pops in with a spring keyed to the unread count. The panel is a popover that closes on Escape or an outside click and hands focus back to the bell. Each row is draggable on the x axis and dismissed past a distance or flick speed, with a close button as the accessible alternative.
| Prop | Type | Default | Description |
|---|---|---|---|
| notifications | { id; title; body?; time? }[] | three samples | Newest first. Add one and the bell rings and announces it. |
| onDismiss | (id: string) => void | — | Called when a notification is swiped away or closed. |
| accent | string | "#E7C2B4" | Colour of the unread badge and dots. |
| align | "left" | "right" | "right" | Which edge of the bell the panel lines up with. |
How we audit: the WCAG 2.2 animation checklist and respecting reduced motion in React.
Yes. The file starts with "use client", so you can import it straight into a Server Component page or layout. It works in Vite as is, and in Astro as a React island.
Only the motion package, beside React and Tailwind CSS v4. There is no MotionKit package and no Tailwind config to add.
Yes, with MotionKit Plus. Add the @motionkit registry and your personal token to components.json (the snippet is on your account page), then run npx shadcn@latest add @motionkit/notification-bell. It saves the file to components/motionkit and installs its dependencies.
Notification Bell is part of MotionKit Plus (£12 / $15 / €14 a month or £96 / $120 / €112 a year). The live preview and playground are free to explore; Plus unlocks its source code, every customisation control and commercial use.
With reduced motion on, the bell doesn't swing, the badge and panel fade, and swiping is turned off in favour of the close buttons.
Your own state or API: pass the list newest first and call your backend from onDismiss. The bell keeps track of what's been read and dismissed on screen.
A live status indicator for services and deploys: the dot blends between colours and pulses softly only when something needs attention.
Stacking notifications with swipe-to-dismiss, hover-to-pause and variants.
Progress through steps: the line fills, and each finished step draws its own tick.
The live preview is free to explore. Plus unlocks the source for Notification Bell and every other premium component.
Not ready for Plus? A free account unlocks 4 premium components, Depth Card, Rolling Text, Dot Wave and Confetti Button, with no card needed.
Customize
Usage
import { NotificationBell } from "@/components/motionkit/notification-bell";
// add to the list (newest first) and the bell swings and announces it
<NotificationBell
notifications={[
{ id: "1", title: "Deploy finished", body: "main is live in 42s.", time: "2m" },
{ id: "2", title: "Ada commented", body: "“Love the new hero.”", time: "1h" },
]}
onDismiss={(id) => markRead(id)}
/>Motion
The exact curves this component runs, plotted with Motion's own maths.
Bell swings
New notification
Badge pops
Unread count changes
Panel opens
Click the bell