react-bd-location

1.0.1 • Public • Published

react-bd-location

It's a simple npm package that show divisions, districts and upazilas of Bangladesh.

NPM JavaScript Style Guide

Install

npm install --save react-bd-location

Usage

import React, { Component } from 'react'

import { BDLocations } from 'react-bd-location'

class Example extends Component {
  render() {
    return <BDLocations onChange={(e) => console.log(e)} />
  }
}

Control with some Props.

props Default Type
bn false Boolean
showLable true Boolean
className '' String
label null Object
placeholder null Object
onChange null Function

Live Preview

React BD Location

Examples

<BDLocations
  onChange={(e) => console.log(e)}
  bn={true}
  showLable={true}
  className=""
  label={{
    division: "",
    district: "",
    upazila: ""
  }}
  placeholder={{
    division: "",
    district: "",
    upazila: ""
  }}
/>

License

MIT © git+https://github.com/foridpathan/BDLocation-NPM-React-Package.git

Readme

Keywords

none

Package Sidebar

Install

npm i react-bd-location

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

166 kB

Total Files

7

Last publish

Collaborators

  • foridpathan