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

https://github.com/atkawa7/rb-datepicker

React bootstrap date range picker
https://github.com/atkawa7/rb-datepicker

react react-date-component react-date-range react-datepicker reactjs reactjs-components

Last synced: about 1 month ago
JSON representation

React bootstrap date range picker

Awesome Lists containing this project

README

        

# rb-datepicker

## Description

A date/time picker for react using bootstrap. This is a a pure react port of
[bootstrap-daterangepicker](https://github.com/dangrossman/bootstrap-daterangepicker)

## Installing

```sh
yarn add bootstrap bootstrap-daterangepicker react prop-types rb-datepicker dayjs
```

## Usage

```javascript
import React from 'react';
import {LinkedCalendar} from 'rb-datepicker';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap-daterangepicker/daterangepicker.css';

class ExampleComponent extends React.Component {
onDatesChange = ({ startDate, endDate }) => {
console.log(({ startDate, endDate }));
}
render() {
return (

);
}
}

```

## Documentation

For in depth documentation, see the original
[bootstrap-daterangepicker](https://github.com/dangrossman/bootstrap-daterangepicker) project page.