Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

material-date-range-picker

jonas-arkulpa223MIT0.1.1TypeScript support: included

React components, that implements material design pickers for material-ui v1

material-ui, pickers, material-ui-pickers, daterangepicker, date-range-picker, react, react-component, material design

readme

Material Data Range Picker

Accessible date range picker for material-ui

Image showing the date picker.

Installation

The date picker is based on multiple awesome projects and requires following peer dependencies to be installed:

  • material-ui
  • date-fns (^1.29.0)
  • downshift
  • kalendaryo
  • styled-components

Available as npm package.

npm i material-date-range-picker
<DateRangePicker
    fromDate={this.state.fromDate}  //from date
    toDate={this.state.toDate}  //to Date
    onChange={this._handleDateRangeChange}
    closeDialogOnSelection    //close date dialog after selecting both from and to date
/>

Acknowledgments

https://material.angular.io/components/datepicker/overview

https://github.com/geeofree/kalendaryo

https://github.com/paypal/downshift

https://github.com/dmtrKovalenko/material-ui-pickers

LICENSE

The project is licensed under the terms of MIT license