1.0.2 • Published 2 months ago

@brighthr/component-countrypicker v1.0.2

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

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

NameTypeDefaultDescription
errorbooleanfalseIf true, shows a red error theme.
disabledbooleanfalseDisables CountryPicker.
labelstringSets the label text.
requiredbooleanfalseIf true, sets the html input as required and adds the red required text.
customSelectionarray[]Allows for a custom selection of countries to appear at the top of the list.
placeholderstringSets the display text when CountryPicker has no value.
classNamestring
1.0.2

2 months ago

1.0.1

3 months ago