Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/foridpathan/bdlocation-npm-react-package
- Owner: foridpathan
- Created: 2022-05-13T16:38:11.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-14T19:30:35.000Z (almost 3 years ago)
- Last Synced: 2025-02-07T04:39:30.926Z (6 days ago)
- Topics: npm, npm-package, react
- Language: JavaScript
- Homepage: https://react-bd-location.vercel.app/
- Size: 521 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)