1.0.1 • Published 2 years ago

react-bd-location v1.0.1

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

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.

propsDefaultType
bnfalseBoolean
showLabletrueBoolean
className''String
labelnullObject
placeholdernullObject
onChangenullFunction

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