Component packs › Fidget › Bell Icon
Bell and clapper swing as two pendulums; every strike of the clapper sends a sound arc out of the side it hit.
Bell Icon is a notification from Fidget, a component pack with 10 animated icons: Animated icons with working parts: hinges, pendulums, springs and gravity. Price: $2 for the whole pack.
Built with: coupled pendulums, strike detection, spring badge.
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 | Unread count shown on the badge. 0 hides it. | |
disabled | boolean | ||
label | string | Accessible name. The count is added to it. | |
size | number | Scale factor. 1 = 56 px button. | |
onPress | () => void | Called when the bell is pressed. | |
autoplay | number | false | Showcase mode: a new notification rings the bell every N ms while visible. |
readonly count: numberring(count?: number): void: Rings the bell; pass a count to update the badge at the same time.setCount(count: number): voiddestroy(): voidimport BellIcon from './BellIcon';
<BellIcon />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Animated icons.