Component packs › Herald › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
count | number | 3 | Unread count. Default 3. |
label | string | "Notifications" | Accessible name. Default "Notifications". |
onOpen | () => void |
readonly count: numbersetCount(n: number): void: Sets the count; a higher one rings the bell.ring(): voiddestroy(): voidimport BellBadge from './BellBadge';
<BellBadge />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Notifications and toasts.