Skip to content

Aneureka/react-distpicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

react-distpicker

react-distpicker is a Chinese district picker for react, inspiring from Distpicker

Demo

https://aneureka.github.io/react-distpicker/

Getting started

Install

npm install react-distpicker -S

or

yarn add react-distpicker -S

Create component

import DistPicker from 'react-distpicker';

const App = () => (
    <DistPicker />
);

export default App;

You can have a glance in /examples.

Options

Property Description Type Default value
placeholderProvince placeholder for province selector string โ€”โ€” ็œ โ€”โ€”
placeholderCity placeholder for city selector string โ€”โ€” ๅธ‚ โ€”โ€”
placeholderDistrict placeholder for district selector String โ€”โ€” ๅŒบ โ€”โ€”
pickerClass class for the Distpicker, mainly used to change the style String
selectClass class for the select component in DistPicker, mainly used to change the style String
onSelect the callback function while selecting, receiving an object including province, city and district func

Contributor

Aneureka

License

The plugin is open-sourced software licensed under the MIT license.

About

๐Ÿ“ A Chinese district picker for react.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published