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>.
| Prop | Type | Default | Description |
|---|---|---|---|
tone | "default" | "warn" | "default" | Turns amber when "warn". |
children | ReactNode | — | The count content. |
Examples
Variants
1230
import { CountBadge } from "@solarius/onset";
import type { CountBadgeProps } from "@solarius/onset";