Skip to content
IndexRequest a UIAboutContact

Notification Inbox List

A bell with an unread count opens a list; clicking an item marks it read, and Mark all read clears the badge.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Clean UI design of a notification dropdown below a bell icon with a red count badge 3: a white rounded panel with a header Notifications and a link Mark all read, four rows each with a small round avatar, a bold title, one grey line of detail, a time on the right and a blue unread dot on the first three, thin dividers, soft shadow, light theme, flat modern style. Variants: all read with no badge, and an empty state. Negative: heavy borders, gradients, text errors, sound icons, clutter. Reduced motion: static design.

About this pattern

Definition

A notification inbox keeps messages that would otherwise vanish as toasts. Unread items have a dot and heavier text, reading one removes the dot, and the bell badge always shows how many remain so the user can decide when to look.

Purpose & UX principles

  • Newest first, with a short title, one line of detail and a time.
  • Clicking or pressing Enter on an item marks it read and would open its target.
  • Mark all read is a single action; never remove items automatically.

Interaction states

  • Bell button, four items, Mark all read, and Reset demo.

Motion specification

  • Panel fades and slides 6px over 150ms; the badge pops when it changes.
  • Reduced motion: no fade, slide or pop.

Responsive behaviour

  • The panel is a popover: Escape closes it and focus returns to the bell.
  • Announce the unread count in the bell's accessible name.

Code

HTML
<div class="bx"><div class="tb"><button class="mini" id="rs" type="button">Reset demo</button><button class="bl" id="bl" type="button" aria-haspopup="true" aria-expanded="false"><svg viewBox="0 0 24 24" width="22" height="22" aria-hidden="true"><path d="M6 17V11a6 6 0 0 1 12 0v6l2 2H4z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/><path d="M10 21a2 2 0 0 0 4 0" fill="none" stroke="currentColor" stroke-width="2"/></svg><b id="bg"></b></button></div><div class="pn" id="pn" hidden><div class="ph"><b>Notifications</b><button class="lk" id="ma" type="button">Mark all read</button></div><ul id="ls"></ul></div><button class="mini" id="rs" type="button">Reset demo</button></div>

Related patterns

Notification Bell with Badge

↗
Notification Bell with BadgeMicro Interactions

Toast

↗
ToastFeedback & Notifications

Anchored Popover

↗
Anchored PopoverOverlays & Dialogs