Skip to content

Indicator

Free

Puts a count or a dot on the corner of a button or a tab, to say that something new waits there. Large counts show as 99+.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Wrap the host, and put the mark inside it.

The sample also uses Button. One command adds them with this item:

inbox-button.tsx

Indicator

<span>
PropTypeDefaultDescription
side"bottom-end""bottom-start""top-end""top-start""top-end"
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

IndicatorBadge

<span>
PropTypeDefaultDescription
side"bottom-end""bottom-start""top-end""top-start"—
countRequirednumber—The number to show. 0 (and a value under 0 or NaN, which count as 0) hides the badge, unless showZero.
maxnumber99The largest number to show. A larger count shows as max and a plus: "99+". Default 99.
showZerobooleanfalseShow the badge with "0" when count is 0. Default false: no news, no mark.
localestring—The BCP 47 locale of the digits ("ar-EG" gives "٣"). Default: the DisplayLocaleProvider locale, else "en-US" (useDisplayLocale), so the server and the browser write the same digits.
formatNumberFormatOptions—Intl.NumberFormat options, for example { notation: "compact" } with a large max. An object written inline is safe: the page cache (numberFormats) keys a formatter by its options, so equal options reuse one formatter.
formatOverflowappendPlusThe text over max, from max in the locale digits. Default: the number and a plus after it ((max) => \${max}+\`). Pass another form for a locale that writes "or more" in another way ((max) => \≥${max}\`).
animatedbooleantrueAnimate a change of the count: the digits roll (up for more, down for fewer), and a count that goes up pops the badge once. Over max the text stays and nothing moves. Default true. false swaps the text at once.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

IndicatorDot

<div>
PropTypeDefaultDescription
pulseboolean—
size"default""sm"—
tone"destructive""info""neutral""success""warning"—
variant"default""muted""ring"—
side"bottom-end""bottom-start""top-end""top-start"—
shownboolean—Shows or hides the dot with the badge motion: in on the fade clock (opacity and a scale from 0.9), out on fadeExit. A dot that shows when the page first renders shows at once. Leave it out to keep the dot always there (no motion).: the unread dot of the What's New Notice pops in when news arrives and leaves when the news is opened.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Wrap one host in Indicator and put IndicatorBadge or IndicatorDot inside the host, so the mark joins its name.
  • Use IndicatorBadge count for a number, and IndicatorDot for news with no number.
  • Use IndicatorDot shown for news that comes and goes while the page is open.
  • For a label or a status next to text, use a Badge.
  • For a status mark on a person, use an Avatar.
Badge in and out
fade · the badge fades in and scales from 0.9; it leaves on fadeExit
Count up
panel · the digits roll and the badge pops to 1.1 and back

Built with

Installs with Indicator

  1. AddedIndicator, with Dot, Rolling Number.
Open the release