3.0.2 • Published 2 months ago

@brighthr/component-button v3.0.2

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

Button

To install, type the following into the command line at the root of your project:

npm i @brighthr/component-button

To implement the Button component into your project you’ll need to add the import:

import Button from '@brighthr/component-button';

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

<Button />

Props

NameTypeDefaultDescription
color'primary' 'accent' 'error' 'white''accent'Sets the color of the button.
fullWidthbooleanfalseSets the button width to 100%.
iconNamestringSets the icon to display, uses calendar-dates if left empty.
iconPosition'left' 'right'Sets the position of the icon, if left empty the icon will not show.
isLoadingbooleanfalseIf true, the loading spinner will show.
outlineButtonbooleanfalseIf true, the button will have a white background.
size'xs' 'sm' 'base' 'lg' 'xl''base'Sets the size of the button.
textstringSets the button text.
textButtonbooleanfalseIf true, gives the button a text appearance.
3.0.2

2 months ago

3.0.1

4 months ago

3.0.0

4 months ago

2.1.5

5 months ago

2.0.3

9 months ago

2.0.2

9 months ago

2.0.1

10 months ago

2.0.0

10 months ago

2.1.2

8 months ago

2.1.1

9 months ago

2.1.4

8 months ago

2.1.3

8 months ago

2.1.0

9 months ago

1.6.1

11 months ago

1.4.20

1 year ago

1.4.21

1 year ago

1.5.0

1 year ago

1.4.15

1 year ago

1.4.17

1 year ago

1.4.16

1 year ago

1.4.19

1 year ago

1.4.18

1 year ago

1.4.11

1 year ago

1.4.10

1 year ago

1.4.13

1 year ago

1.4.12

1 year ago

1.4.14

1 year ago

1.4.6

1 year ago

1.4.9

1 year ago

1.4.8

1 year ago

1.4.7

1 year ago

1.4.5

1 year ago

1.3.6

2 years ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago