Browse the docs
Display / Count & StatusDot

Count & StatusDot

Round count stickers and little status dots.

Server ComponentWCAG AASince v0.1
312OnlineOn a callOffline

Change every prop live in the playground.

Props

Count

PropTypeDefaultWhat it does
children requiredstring | number——
label requiredstring—What the number means, read by screen readers: "3 unread". Required, because a bare number says nothing.
classNamestringnone—
size"sm" | "md"md`sm` fits inside tabs and buttons.
tone"ink" | "tomato"tomatoFill: `tomato` for attention, `ink` for plain counts.

StatusDot

PropTypeDefaultWhat it does
children requiredReactNode—The words are the status; the dot only repeats it.
classNamestringnone—
tone"online" | "busy" | "offline"none—

Use it well

DoSay what the number counts in the label: "3 unread".
Don'tShow a dot without its words.

Accessibility

  • A Count needs a label; a bare number says nothing.
  • A StatusDot always has its words next to it.
Five stamps!

All aboard.

You took the whole tour. Here's Holo Pip, a foil sticker for riders who finish. It's in your playground tray now, for good.