0.4.8 • Published 12 months ago

mui-input-date-range-picker v0.4.8

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

DateRangePicker

A customizable React date range picker component.

Table of Contents

Installation

Install the package using npm:

npm i mui-input-date-range-picker

Usage

Basic Example

Here is a simple example of how to use the DateRangePicker component in your React application:

import React, { useState } from "react";
import DateRangePicker from "mui-input-date-range-picker";

const App = () => {
  const [dateRange, setDateRange] = useState({
    startDate: null,
    endDate: null,
  });

  return (
    <div>
      <h1>Date Range Picker Example</h1>
      <DateRangePicker value={dateRange} onChange={setDateRange} />
    </div>
  );
};

export default App;

Props

NameTypeDefaultDescription
onChangefuncnullCallback function to handle the date range change.
initialDateRangeobject{}Initial date range with startDate and endDate.
minDatedatenew Date(2000, 0, 1)Minimum selectable date.
maxDatedatenew Date(2030, 11, 31)Maximum selectable date.
highlightColorstring"#1faf4a"Color used to highlight selected dates.
timezonestringAmerica/New_YorkTime zone for the date range picker.
labelstring"Select date range"Label for the date range picker input field.
isFutureDatesbooleanfalsePicker will use default future date ranges

Contributors

0.4.8

12 months ago

0.4.7

12 months ago

0.4.6

12 months ago

0.4.5

12 months ago

0.4.4

12 months ago

0.4.3

12 months ago

0.4.2

12 months ago

0.4.1

12 months ago

0.4.0

12 months ago

0.3.9

12 months ago

0.3.8

12 months ago

0.3.7

12 months ago

0.3.6

12 months ago

0.3.5

12 months ago

0.3.4

12 months ago

0.3.3

12 months ago

0.3.2

12 months ago

0.3.1

12 months ago

0.3.0

12 months ago

0.2.9

12 months ago

0.2.8

12 months ago

0.2.7

12 months ago

0.2.6

12 months ago

0.2.5

12 months ago

0.2.4

12 months ago

0.2.3

12 months ago

0.2.2

12 months ago

0.2.1

12 months ago

0.2.0

12 months ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.1

1 year ago