To install, type the following into the command line at the root of your project:
npm install @brighthr/component-badgeTo install, type the following into the command line at the root of your project:
```
npm i @brighthr/component-badge
To implement the Badge component into your project you’ll need to add the import:
`javascript`
import Badge from '@brighthr/component-badge';
After adding import into your project you can use it simply like:
`jsx`Props
| Name | Type | Default | Description |
|-----------------|----------------------------------------------------------------------------------|-------------|--------------------------------------------------------------------------------------------------|
| background | 'default' 'dark' 'white' 'none' | 'default' | Sets the background color of the badge. |boolean
| fullWidth | | false | Sets the badge width to 100%. |boolean
| hasMarker | | false | If true, adds a marker to the badge. |string
| iconName | | | Sets the icon to display in the badge, the icon component uses calendar-dates if left empty. |'left'
| iconPosition | 'right' | | Sets the position of the icon, if left empty the icon will not show. |boolean
| markerDoesBlink | | false | If true, the marker will have a blinking animation. |'xs'
| size | 'sm' 'base' 'lg' 'xl' | 'base' | Sets the size of the badge. |'default'
| status | 'warning' 'information' 'success' 'error' 'notification' | 'default' | Sets the color theme of the badge. |string
| text | | | Sets the text inside the badge. |boolean
| uppercase | | false | If true`, the text will be uppercase. |