JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q44033F
  • License ISC

Country and Province/State typeahead selector using react.

Package Exports

  • react-country-province

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-country-province) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React-Country-Province

React-Country-Province is a component that handles country & province selection. Change the country and the province options get updated.

Country and province list originated from here

Parameters:

  • country: React.PropTypes.bool,
  • countryName: React.PropTypes.string,
  • countryValue: React.PropTypes.string,
  • countryLabel: React.PropTypes.string,
  • countryMulti: React.PropTypes.bool,
  • countryBringToTop: React.PropTypes.array,
  • province: React.PropTypes.bool,
  • provinceName: React.PropTypes.string,
  • provinceValue: React.PropTypes.string,
  • provinceLabel: React.PropTypes.string,
  • provinceMulti: React.PropTypes.bool,
  • defaultCss: React.PropTypes.bool,
  • onCountryChange: React.PropTypes.func,
  • onProvinceChange: React.PropTypes.func

Example

  React.render(
    (   
      <div>
        <h1>React Country/Region Select</h1>

        <p> 
          Making country / region selection suck less.
        </p>

        <ReactCR
              countryValue='US'
              provinceValue='CA' />
      </div>
    ),  

    document.body
  )