Badge
Badge is used to display numeric status data.Installation
| Install | yarn add @atlaskit/badge |
|---|---|
| Source | Bitbucket.org, (opens new window) |
| npm | @atlaskit/badge, (opens new window) |
| Bundle | unpkg.com, (opens new window) |
Props
| Description | Affects the visual style of the badge. Uses the new naming convention:
|
|---|---|
| Type | "warning" | "success" | "inverse" | "discovery" | "danger" | "neutral" | "information" | "informationBold" | "successBold" | "dangerBold" | "warningBold" | "discoveryBold" |
| Description | The value displayed within the badge. A |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | The maximum value to display. Defaults to |
|---|---|
| Type | number | false |
| Description | Style customization to apply to the badge. Only |
|---|---|
| Type | { color?: Color; backgroundColor?: BackgroundColor; } |
| Description | A |
|---|---|
| Type | string |