Component packs › Herald › Bell Badge

Bell Badge

The bell swings from its loop and its clapper, a pendulum of its own, strikes the rim and makes it shiver while the count rolls up.

Bell Badge is a badge 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: two pendulums, clapper strikes, rolling count.

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.

Bell Badge props

PropTypeDefaultDescription
countnumber3Unread count. Default 3.
labelstring"Notifications"Accessible name. Default "Notifications".
onOpen() => void

Methods on the ref

Use it in React

import BellBadge from './BellBadge';

<BellBadge />

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

More in Herald

Good for: Notifications and toasts.