3.0.1 • Published 4 months ago

@brighthr/component-badge v3.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

Badge

To 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:

import Badge from '@brighthr/component-badge';

After adding import into your project you can use it simply like:

<Badge />

Props

NameTypeDefaultDescription
background'default' 'dark' 'white' 'none''default'Sets the background color of the badge.
fullWidthbooleanfalseSets the badge width to 100%.
hasMarkerbooleanfalseIf true, adds a marker to the badge.
iconNamestringSets the icon to display in the badge, the icon component uses calendar-dates if left empty.
iconPosition'left' 'right'Sets the position of the icon, if left empty the icon will not show.
markerDoesBlinkbooleanfalseIf true, the marker will have a blinking animation.
size'xs' 'sm' 'base' 'lg' 'xl''base'Sets the size of the badge.
status'default' 'warning' 'information' 'success' 'error' 'notification''default'Sets the color theme of the badge.
textstringSets the text inside the badge.
uppercasebooleanfalseIf true, the text will be uppercase.
3.0.1

4 months ago

3.0.0

4 months ago

2.3.5

5 months ago

2.3.4

5 months ago

2.3.0

8 months ago

2.1.2

9 months ago

2.2.0

8 months ago

2.1.1

9 months ago

2.3.2

8 months ago

2.3.1

8 months ago

2.3.3

6 months ago

2.1.0

9 months ago

2.0.1

9 months ago

2.0.0

10 months ago

1.2.3

12 months ago

1.2.2

12 months ago

1.2.0

12 months ago

1.1.0

12 months ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago