3.0.2 • Published 8 days ago

@brighthr/component-input v3.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
8 days ago

Input

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

npm i @brighthr/component-input

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

import Input from '@brighthr/component-input';

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

<Input />

Props

NameTypeDefaultDescription
buttonAriaLabelstringSets the aria-label for the button if hasOverlay and hasButton are true.
disabledbooleanIf true, disables the input.
errorbooleanfalseIf true, shows a red error theme.
inputSize'base' 'xl''base'Sets the size of the input.
labelstringSets the label text.
leftIconNameIconNameSets the icon to display on the left (See Icon component).
onClickButton() => voidFunction to handle onclick.
requiredbooleanfalseIf true, sets the html input as required and adds the red required text.
rightIconNameIconNameSets the icon to display on the right (See Icon component).
unit'days' 'hrs' 'mins'Sets the unit to display.
3.0.2

8 days ago

3.0.1

3 months ago

3.0.0

3 months ago

2.1.7

3 months ago

2.1.6

4 months ago

2.1.5

5 months ago

2.0.1

9 months ago

2.0.0

10 months ago

2.1.2

8 months ago

2.1.1

9 months ago

2.1.4

7 months ago

2.1.3

8 months ago

2.1.0

9 months ago

1.3.7

1 year ago

1.3.6

1 year ago

1.3.10

1 year ago

1.3.11

1 year ago

1.3.12

1 year ago

1.3.9

1 year ago

1.3.8

1 year ago

1.3.5

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.0.3

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.9

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.0.10

2 years ago

0.1.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.1

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago