4.2.0
Patterns

NotificationBell

An unread count on a bell, as a badge rather than a colour change.

Default

The count is a badge, not a colour change — an unread bell is not an alarm.

Usage

import { NotificationBell } from '@oceanic-hub/brand-system'

Unread is not an alarm. The count is the signal; the bell does not change colour, and it never pulses. count defaults to 0, and at 0 the badge does not render at all — "no notifications" is the common state, so it is the one that costs a caller nothing.

There is no overflow cap yet: at count={1200} the badge (min-w-4, not a fixed width) simply stretches past the bell's corner to fit it. Most bells in circulation collapse past two or three digits (99+); this one does not, so a caller with a genuinely large inbox should format the number before it reaches this prop.

An unread mark you can actually read

The badge is corner-ANCHORED with a ring in the surrounding ground — the same fix AvatarBadge used for the identical problem — with a real minimum size that grows with the digits instead of clipping them, tabular-nums so two digits do not jitter as the count ticks, and a 99+ ceiling because past two digits the number has stopped being the message. indicator="dot" is presence without arithmetic, for a bell whose panel is one click away. The dot STILL announces the count: the visual channel drops the number, the accessible name keeps it. That is the part that matters — the old way to get a quieter mark was count={0}, which took the announcement with it and forced an aria-label override to put it back.

indicator="count"
indicator="dot"
nothing unread

API Reference

See the NotificationBell API page for every prop of every part, with types, defaults and the contract that pins them.

On this page