Badges indicate the status of an object.
Usage
import { Badge } from 'nr1'
Examples
Basic
<div className="nr1-Docs-prettify"> <Badge>Normal</Badge></div>
Types
<div className="nr1-Docs-prettify"> <Badge>Normal</Badge> <Badge type={Badge.TYPE.INFO}>New</Badge> <Badge type={Badge.TYPE.SUCCESS}>Success</Badge> <Badge type={Badge.TYPE.WARNING}>Warning</Badge> <Badge type={Badge.TYPE.CRITICAL}>Critical</Badge></div>
Props
REQUIREDstring|number | String to render inside the badge. Ellipsis will apply if the content is more than 24 characters. |
string | Appends class names to the component.Should be used only for positioning and spacing purposes. |
enum[] | Spacing property. Spacing is defined as a tuple of zero to four values, which follow the same conventions as CSS properties like <Array of |
object | Inline style for custom styling.Should be used only for positioning and spacing purposes. |
string | Adds a |
enum | Type can be:
|