1.0.1 • Published 3 years ago
react-bd-location v1.0.1
react-bd-location
It's a simple npm package that show divisions, districts and upazilas of Bangladesh.
Install
npm install --save react-bd-locationUsage
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
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