1.0.2 • Published 2 years ago

react-country-select-component v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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