1.0.6 • Published 5 months ago
@brighthr/component-countrypicker
Licence
MIT
Version
1.0.6
Deps
2
Size
88 kB
Vulns
0
Weekly
0
CountryPicker
Installation
To install, type the following into the command line at the root of your project:
npm i @brighthr/component-countrypickerImport
Import into your file:
import CountryPicker from '@brighthr/component-countrypicker';Props
| Name | Type | Default | Description |
|---|---|---|---|
| error | boolean |
false |
If true, shows a red error theme. |
| disabled | boolean |
false |
Disables CountryPicker. |
| label | string |
Sets the label text. | |
| required | boolean |
false |
If true, sets the html input as required and adds the red required text. |
| customSelection | array |
[] |
Allows for a custom selection of countries to appear at the top of the list. |
| placeholder | string |
Sets the display text when CountryPicker has no value. | |
| className | string |