1.0.2 • Published 2 months ago
@brighthr/component-countrypicker v1.0.2
CountryPicker
Installation
To install, type the following into the command line at the root of your project:
npm i @brighthr/component-countrypicker
Import
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 |