packages/react-components/react-badge/library/docs/Spec.md
A badge is an additional visual descriptor for UI elements. It can be used to denote numerical value, status or general information.
<Badge>
My Custom Badge
</Badge>
<Badge
style={{ position: 'absolute', top: -4, right: -4 }}
/>
Badge can have several variations.
default, rounded and circulartiny, extra-small, small, medium, large, extra-large.filled, outline, ghost, tintSee API at Badge.types.ts.
<Badge />
<ElementType>{children}</ElementType>
<span class="ui-badge"> ... </span>
See MIGRATION.md.
Badges don't receive focus
Screen Readers
Badge shouldn't rely only on color information
Badge is base component that can be used to create custom Badge such as PresenceBadge or CounterBadge with specific behaviors.
A Presence Badge represents someone's availbility or status
See API at PresenceBadge.types.ts.
A Counter Badge is a visual indicator for numeric values such as tallies and scores.
See API at CounterBadge.types.ts.