Badge
A small label that marks a status, a category or a count, in its tone's colour, info by default.
Usage
Examples
Tones
tone sets the colour, info by default, accent, destructive, success or warning, each a light fill with its own line and words, as an alert is: one look for every status, and never a grey one.
Sizes
size sets its height: sm 16px, base 20px (the default) or lg 24px, its words and an icon a step smaller or bigger with it.
Border radius
borderRadius sets the corners on the kit's one scale: none, xs 4px, sm 6px, base 8px, lg 12px, xl 16px, or full to round it, which makes a badge holding a count at least as wide as it is tall, in tabular numerals; base is the default.
With icon
An icon goes in as a child, and data-icon="inline-start" or "inline-end" trims the padding on its side.
API Reference
Badge
BadgeProps · components/Badge/Badge.types.tsIt also takes the props of <span>.