---
title: "Notification Bell"
description: "A bell button with the number of unread notifications. When new ones come in, the count rolls up and the bell rings."
url: https://gelatinui.com/components/notification-bell
markdown_url: https://gelatinui.com/components/notification-bell.md
access: free
install: "npx shadcn@latest add @gelatin-ui/notification-bell"
registry_item: https://gelatinui.com/r/notification-bell.json
version: "2026-11-15"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Notification Bell

> A bell button with the number of unread notifications. When new ones come in, the count rolls up and the bell rings.

Page: https://gelatinui.com/components/notification-bell

## When to use it

Best for: The bell in an app header that shows how many notifications are unread and opens their panel.

- Pass the unread number as `count`. At 0 the mark goes away.
- Use `mark="dot"` when only "something is new" matters.
- Pass the bell as the `render` element of a `PopoverTrigger` to open a list.

## When not to use it

- For a count on any other control or avatar, use an [Indicator](https://gelatinui.com/components/indicator.md).
- For a bell icon with no button and no count, use the [Animated Bell Icon](https://gelatinui.com/components/animated-bell-icon.md).

## Notes for agents

- `count` is required. A value under 0 or `NaN` shows no mark.
- A rise rolls the digits, pops the badge, and rings the bell once. A fall only rolls.
- Over `max` (default 99) the badge shows `99+` and stays still, but the bell still rings.
- Give the button an `aria-label` such as "Notifications". The `dot` mark names itself with `unreadLabel`.
- `variant` is `ghost` or `outline`; `size` is `sm` (28 px), `default` (32), or `lg` (36).

## Anatomy

```text
NotificationBell
```

## API reference

### NotificationBell

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `busy` | `boolean` |  | The button waits for the app (busy words): a spinner, `aria-busy`, and no clicks. Focus stays on the button. The style hook stays `data-loading`. |
| `spinnerPlacement` | `"center" \| "start"` |  | `center` (default): the spinner covers the label. `start`: it takes the leading icon slot. The icon sizes always use `center`, because their one icon is the label. |
| `glass` | `"clear" \| "dark" \| "light"` |  |  |
| `rounded` | `"default" \| "full"` |  |  |
| `count` | `number` |  | The number of unread items. 0 (and a value under 0) shows no mark. |
| `mark` | `"count" \| "dot"` | "count" | `count` (default) shows the number; `dot` shows only that something is new. |
| `variant` | `"ghost" \| "outline"` | "ghost" | `ghost` (default) for a header or a toolbar; `outline` on a plain page. |
| `size` | `"default" \| "lg" \| "sm"` | "default" | The bell size: `sm` 28px, `default` 32px, `lg` 36px. |
| `max` | `number` | 99 | The largest number to show; a larger count shows "99+". Default 99. |
| `locale` | `string` |  | The BCP 47 locale of the digits ("ar-EG" gives "١٢"). Default: `useDisplayLocale`. |
| `unreadLabel` | `function` | unreadWords | The name of the `dot` mark: "12 unread". Default English words. |

Also takes every prop of Base UI `Button`: https://base-ui.com/react/components/button

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| NotificationBell | `notification-bell` |  |  |  |

## Usage

Pass the unread count, and open the list from a Popover.

The sample also uses `popover`, which this add does not write. One command adds them with this item:

```bash
npx shadcn@latest add @gelatin-ui/notification-bell @gelatin-ui/popover
```

```tsx title="inbox-bell.tsx"
import { NotificationBell } from "@/components/actions/notification-bell";
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";

export function InboxBell({ unread }: { unread: number }) {
  return (
    <Popover>
      <PopoverTrigger render={<NotificationBell count={unread} aria-label="Notifications" />} />
      <PopoverContent align="end">You have {unread} unread notifications.</PopoverContent>
    </Popover>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui/notification-bell
```

It adds 33 registry items: 30 files, 5046 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## Built on

- [Animated Bell Icon](https://gelatinui.com/components/animated-bell-icon.md)
- [Button](https://gelatinui.com/components/button.md)
- [Indicator](https://gelatinui.com/components/indicator.md)

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Indicator](https://gelatinui.com/components/indicator.md)
- [Animated Bell Icon](https://gelatinui.com/components/animated-bell-icon.md)
- [Popover](https://gelatinui.com/components/popover.md)
