react-country-select-component

1.0.2 • Public • Published

react-country-select-component

A country select dropdown component with each country flag

NPM JavaScript Style Guide

Install

npm install --save react-country-select-component

Usage

import React, { Component } from 'react'

import { ReactCountrySelectComponent } from 'react-country-select-component'

class Example extends Component {
  render() {
    return(
       <ReactCountrySelectComponent
        name={'country'}
        isClearable={true}
        error={false}
        label='Country'
        placeholder={'Select country'}
        borderRadius={6}
        defaultvalue={null}
        onChange={(event) => console.log(event)}
      />
    )
  }
}

License

MIT © Mamun-swe

Readme

Keywords

none

Package Sidebar

Install

npm i react-country-select-component

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

62 kB

Total Files

7

Last publish

Collaborators

  • mamun-swe