Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/foridpathan/bdlocation-npm-react-package

A simple npm package that show divisions, districts and upazilas of Bangladesh.
https://github.com/foridpathan/bdlocation-npm-react-package

npm npm-package react

Last synced: 5 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# react-bd-location

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

[![NPM](https://img.shields.io/npm/v/react-bd-location.svg)](https://www.npmjs.com/package/react-bd-location) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save react-bd-location
```

## Usage

```jsx
import React, { Component } from 'react'

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

class Example extends Component {
render() {
return 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](https://react-bd-location.vercel.app/)

## Examples
```jsx
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](https://github.com/foridpathan/BDLocation-NPM-React-Package.git)