Badge
A badge is a label or decorative indicator used to communicate information within the UI in a highly visual way. We categorize badges into three types: those that communicate the status of a piece of content, those that provide non-actionable information, and special cases that have been designed for a specific issue.
- Storybook (opens in a new tab)
- Figma library (opens in a new tab)
- Figma spec (opens in a new tab)
npm install @sbks/ds-elements
Dimensions and spacing
Section titled “Dimensions and spacing”The icon never grows past the maximum size, whatever size the icon itself asks for.
| Part | Property | Token |
|---|---|---|
| Large badge | Gap between icon and label | --space-2 |
| Large badge | Maximum icon size | 18px |
| Medium badge | Gap between icon and label | 4px |
| Medium badge | Maximum icon size | 12px |
| Small badge | Gap between icon and label | 4px |
| Small badge | Maximum icon size | 12px |