CustomDateRangePicker
custom-date-range-picker is a simple to use yet customizable component for having different Date Range selection.
-
Date Range Picker has Today, Yesterday, Last 7 Days(default), Last 30 Days, This Month, Last Month, Custom Range and Last N (user entered number) days.
-
On click of Custom Range, a date range selection popup opens and the Selected Range is visible in the Input box. Note: User cannot select Date greater that the current Date.
-
Max Number of days to be allowed in Last N Days is Props based. for example: 365 days/730 days....
-
CSS customizable & Custom position - Work in Progress,
Installation
This requires [React.js and Prop-Types] to run.
npm i custom-date-range-picker
How to Use
Install and import custom-date-range-picker and pass the props as per the below table
import React,
Contribution
You are welcome to raise issues and PRs in the repository