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

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

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