Badge
Pulse Badge
A status pill with a pulsing dot and a count that rolls when the number changes.
npx motionsnack add pulse-badgeCustomize
<PulseBadge />Props
21 properties
| Property | Type | Default | Description |
|---|---|---|---|
| countLabel | Partial<Record<Intl.LDMLPluralRule, string>> | { other: '{n} unread' } | Screen-reader text of the count pill, one string per plural form; {n} is the exact count. |
| successColor | string | undefined | Success dot colour on both themes. Undefined uses the per-theme pair. |
| warningColor | string | undefined | Warning dot colour on both themes. Undefined uses the per-theme pair. |
| errorColor | string | undefined | Error dot colour on both themes. Undefined uses the per-theme pair. |
| locale | string | 'en-US' | BCP 47 locale for the plural rules. |
| size | 'sm' | 'md' | 'lg' | - | Deprecated, ignored: badges are one size. |
| showCount | boolean | - | Deprecated, ignored: use variant='count'. |
| maxCount | number | - | Deprecated alias of max. |
| accent | string | - | Deprecated, ignored: aurora is never a status. |
| pulseDuration | number | - | Deprecated, ignored: the ping is the standard 3-cycle loop. |
| radius | number | - | Deprecated, ignored: badges are fully round. |
| duration | number | - | Deprecated, ignored: the count rolls in 300ms. |
| bounce | number | - | Deprecated, ignored. |
| className | string | '' | Extra classes on the badge. |
| variant | 'status' | 'count' | 'dot' | 'status' | Form of the badge: a status pill, a count pill or a lone dot. |
| label | string | 'Active' | Label of the status pill. On the dot it is screen-reader text only. |
| status | 'neutral' | 'success' | 'warning' | 'error' | 'neutral' | Status the dot of the status pill shows. |
| dot | boolean | true | Show the status dot in front of the label. |
| pulse | boolean | false | Ping ring behind the dot for a real live state; 3 cycles, restarts when the status changes. |
| count | number | 0 | Number in the count pill. Zero hides it. |
| max | number | 99 | Largest number shown. Above it the pill reads e.g. 99+. |
About Pulse Badge
Pulse Badge is a compact status pill with a dot, a label and an optional count. A ring pings out of the dot on a loop, so live states such as online, recording or syncing read at a glance, and the speed of the ping is a prop. It comes in neutral, accent, success, warning and error variants, where neutral stays monochrome and the others tint the fill, border and text. When the count changes, the old number rolls out and the new one springs in, upwards when the value grows and downwards when it shrinks. Three sizes, a radius prop and a maximum count that turns into 99+ cover the usual cases, and the ping stops for reduced-motion users.
What's included
- Pulsing status dot with adjustable speed
- Neutral, accent, success, warning and error variants
- Count that rolls up or down on change
- Max count with a plus sign
- Three sizes and a radius prop
- Tint colour prop per variant
- Light and dark look, reduced-motion fallback
- Type
- Animated React badge component
- Library
- Components · Badge
- Stack
- Next.js, React, Tailwind CSS
- Added
- 2026-09-20
- Install
npx motionsnack add pulse-badge