Pass the unread count, and open the list from a Popover.
The sample also uses Popover. One command adds them with this item:
inbox-bell.tsx
NotificationBell
<button>| Prop | Type | Default | Description | ||||
|---|---|---|---|---|---|---|---|
| class | 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. | ||||
| spinner | "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. | ||||
| unread | unreadWords | The name of the dot mark: "12 unread". Default English words. | |||||
From Base UIButtonBase UI docs | |||||||
| focusable | boolean | false | Whether the button should be focusable when disabled. | ||||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |||||
| style | — | Style applied to the element, or a function that returns a style object based on the component's state. | |||||
| |||||||
| ...props | <button> attributes | — | Every other attribute goes to the <button>, with a ref. | ||||
Built with
Installs with Notification Bell
- Components
- Animated Bell Icon,Button,Indicator



