Skip to content

foridpathan/BDLocation-NPM-React-Package

Repository files navigation

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

About

A simple npm package that show divisions, districts and upazilas of Bangladesh.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published