---
title: "Notification Bell"
description: "A bell that swings from its top with ring waves and a lagging clapper; the badge pops from its shoulder, bumps on each new count, and tucks back in when read."
category: "Micro Interactions"
publishedAt: "2026-11-16"
updatedAt: "2026-11-25"
documentation: "https://beui.dev/micro-interactions/notification-bell"
markdown: "https://beui.dev/micro-interactions/notification-bell.md"
license: "MIT"
---

# Notification Bell

> A bell that swings from its top with ring waves and a lagging clapper; the badge pops from its shoulder, bumps on each new count, and tucks back in when read.

## Install

```bash
npx shadcn@latest add @beui/notification-bell
```

## Dependencies

- `clsx`
- `motion`
- `react`
- `tailwind-merge`

## Usage

```tsx
"use client";

import { useState } from "react";
import { NotificationBell } from "@/components/motion/notification-bell";

export function NotificationBellUsage() {
  const [count, setCount] = useState(3);
  return <NotificationBell count={count} onCountChange={setCount} />;
}
```

## API Reference

### NotificationBell

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `count` | `number` | — | No | Unread count. |
| `defaultCount` | `number` | `0` | No | The initial unread count when uncontrolled. Default: 0 |
| `onCountChange` | `((count: number) => void)` | — | No | Called with 0 when the bell is pressed, and with any count you set. |
| `max` | `number` | `9` | No | Counts above this show as "9+". |
| `labels` | `Partial<{ notifications: string; unread: string; }>` | — | No | Override any built-in string, e.g. for translation. |
| `sound` | `boolean` | `false` | No | Play a small bell when the count goes up and a tap when it is cleared. Off by default; a `SoundProvider` can mute it app-wide. |
| `className` | `string` | — | No | Classes merged onto the root element. |

## About Notification Bell

Notification Bell is a React notification control built with Framer Motion. Whenever the unread count goes up, the bell swings from its top while the clapper lags the other way and ring waves pulse out on both sides. The first notification pops the badge out of the bell's shoulder; later ones bump it as the count rolls digit by digit. Pressing it clears the count: the badge shrinks back into the bell and the bell gives a small nod. Counts above max show as 9+.

### When to use it

- An app header shows unread notifications.
- An inbox or activity feed signals new items.
- A support or chat widget shows waiting messages.

### Accessibility

It renders a real button named Notifications, or Notifications, 3 unread when there are some, so the count is read out. With reduced motion the bell does not swing or nod, there are no ring waves, and the badge fades in and out without scaling.

### FAQ

**How do I control the count?**

Pass count and onCountChange. The bell rings on every increase, however it happens, and pressing it calls onCountChange(0).

**How do I change the cap?**

Set max. Above it the badge shows max+, 9+ by default.

## Source

- Registry detail: https://beui.dev/r/notification-bell
- Raw source: https://beui.dev/r/notification-bell/raw
- GitHub: https://github.com/starc007/ui-components
