Skip to main content
Data DisplayLevel 1

Badge

角标

WebMobileDesktopDifficulty: Easy

A tiny marker pinned to the corner of an icon or avatar that says "there is something you need to look at".

01

Live Demo

Actually clickable
Over 99 shows "99+", and at zero the whole thing hides. Tap one to see.

What you just saw:The unread dot on a WeChat bottom tab, the "99+" on an app icon, the number on the Messages icon in a nav bar.

02

What it actually is

A badge is metadata about metadata: it carries no content of its own, it just attaches a state to some element. The two most common forms are the dot (unread) and the count (unread total). Overuse it and you get badge fatigue, where users stop seeing any of them.

badgenotification badgered dotunread dotcount bubblenotification count
03

Anatomy · What it's made of

  1. Anchor宿主元素

    The icon or avatar it attaches to

  2. Bubble角标

    Absolutely positioned at the top-right

  3. Count数量

    Shows 99+ past 99

  4. Dot纯红点

    Plain dot with no number, just means "something is here"

04

When to Use

When it fits, and when it doesn't
Badge usage recommendations
SituationUse it?
Signalling unread content or new messagesYes
You need attention but not immediate actionYes
Marking a state on the top-right of an iconYes
Showing a quantity (3 items in the cart)Yes
Signalling a normal or healthy stateNo

Once red dots are everywhere users ignore all of them — use them sparingly.

A "99+" badge without a real number leaves users wondering how many there actually are.

05

Similar Patterns

Don't mix these up
06

How to tell AI

Three levels of prompt

Add the component name and specifics

Add a Badge to the top-right of the "Messages" icon in the bottom navigation: show a number when there are 5 unread, show "99+" past 99, hide at zero, and show a "5 unread messages" tooltip on hover.

07

Don't just say this to AI

Bad → Better

Don't say this to AI

Add a red dot hint to the icon.

Say this instead

Add a Badge to the icon: absolutely positioned at the top-right, a red capsule with white text, "99+" past 99, hidden at zero, with aria-label="N unread" on the anchor — and used sparingly so it does not become visual noise.

08

Share this card

Social-ready

Turn this pattern into a 3:4 or 1:1 knowledge card and export it as PNG right in the browser. No backend needed.