3.0.0 ā€¢ Published 6 years ago

bs-react-dates v3.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Reason bindings for react-dates

Reason bindings for react-dates.

Status

šŸš§ Not everything is supported yet. šŸš§

Feel free to create an issue or PR.

Installation

npm install --save bs-react-dates

Then add bs-react-dates to bs-dependencies in your bsconfig.json:

{
  ...
  "bs-dependencies": ["bs-react-dates"]
}

To include styles

[%bs.raw {|require('react-dates/lib/css/_datepicker.css')|}];

react-dates assumes that box-sizing: border-box is set globally in your page's CSS. At least do this, to make it display properly.

.DateRangePicker *,
.SingleDatePicker *,
.DayPickerRangeController * {
  box-sizing: border-box;
}

TODO

Usage

Please take a look at examples. To run demo:

$ cd examples
$ npm install
$ npm start