Primitives
Badge
Small status indicator or numeric count overlay attached to another element
import { Badge } from '@amezquita/design-system/components/primitives/Badge'Live render
LiveDraft3
Props
| Prop | Type | Description |
|---|---|---|
variant? | 'neutral' | 'success' | 'warning' | 'error' | 'info' | |
shape? | 'dot' | 'status' | 'count' | |
aria-label? | string | |
children? | never | React.ReactNode |
Also accepts all props of: Omit<React.HTMLAttributes<HTMLSpanElement>, 'children' | 'aria-label' | 'role'>
Tokens
| Token | Type | Value |
|---|---|---|
--badge-count-size | dimension | 20px |
--badge-dot-size | dimension | 8px |
--badge-font-weight | fontWeight | 500 |
--badge-padding-x | dimension | 8px |
--badge-padding-y | dimension | 4px |
Usage example
<Badge>Label</Badge>