It's a simple npm package that show divisions, districts and upazilas of Bangladesh.
npm install --save react-bd-location
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 |
<BDLocations
onChange={(e) => console.log(e)}
bn={true}
showLable={true}
className=""
label={{
division: "",
district: "",
upazila: ""
}}
placeholder={{
division: "",
district: "",
upazila: ""
}}
/>
MIT © git+https://github.com/foridpathan/BDLocation-NPM-React-Package.git