CountBadge
Metrics & Status

CountBadge

Monospace count shown at the end of a nav or tab item, for unread counts, filter totals, and other numeric indicators.

Props

CountBadge extends HTMLAttributes<HTMLSpanElement>.

CountBadgeProps props
PropTypeDefaultDescription
tone"default" | "warn""default"Turns amber when "warn".
childrenReactNode—The count content.

Examples

Variants

1230
CountBadge variants
ImportTSX
import { CountBadge } from "@solarius/onset";
import type { CountBadgeProps } from "@solarius/onset";