https://github.com/rsuite/multi-date-picker
A date picker that can select multiple dates
https://github.com/rsuite/multi-date-picker
Last synced: 5 months ago
JSON representation
A date picker that can select multiple dates
- Host: GitHub
- URL: https://github.com/rsuite/multi-date-picker
- Owner: rsuite
- License: mit
- Created: 2019-01-29T03:58:02.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T14:36:22.000Z (almost 3 years ago)
- Last Synced: 2024-10-30T00:00:12.479Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://rsuite.github.io/multi-date-picker
- Size: 2.71 MB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Multi DatePicker
A date picker that can select multiple dates
## Installation
```
npm install @rsuite/multi-date-picker --save
```
## Usage
```js
import DatePicker from '@rsuite/multi-date-picker';
import '@rsuite/multi-date-picker/lib/styles.less'
const App = () => {
return (
);
};
ReactDOM.render(, mountNode);
```
## Props
`MultiDatePicker` extends all the props of [`DatePicker`](https://rsuitejs.com/en/components/date-picker), with different support:
| Property | Type`(Default)` | Description |
| ------------ | --------------- | --------------------------------- |
| value | Date[] | Value (Controlled) |
| defaultValue | Date[] | Default value |
| onChange | (Date[])=>void | Callback fired when value changed |
## License
MIT licensed