react-datetimerangeinput

0.1.19 • Public • Published

React DateTime Range Input

npm version license npm downloads

A customizable and user-friendly React component for selecting date and time ranges.

Features

  • Flexible Date and Time Range Selection: Allow users to easily select both start and end dates along with specific time ranges.
  • Customizable Appearance: Tailor the appearance of the input to match your application's design.
  • Responsive Design: Ensure a seamless user experience across various screen sizes and devices.
  • Easy Integration: Quickly integrate the component into your React projects.

Installation

Install the package using npm:

  npm i react-datetimerangeinput
  import DateTimeRangeInputComponent from 'react-datetimerangeinput';
  function App() {
    const [dateRange, setDateRange] = useState({startDate: new Date(), endDate: new Date()});
    const updateDateRange = (key:string, value:any) => {
    setDateRange((prevDateRange:any) => ({
      ...prevDateRange,
     [key] : value
    }));
  }
  return (
    <div className="App">
      <div className='inputDivContainer'>
      <DateTimeRangeInputComponent  dateRangeValue={dateRange} callBackDateRange={updateDateRange}/>
      </div>
    </div>
  );
}

This is a sample image:

Sample Image;

Readme

Keywords

none

Package Sidebar

Install

npm i react-datetimerangeinput

Weekly Downloads

40

Version

0.1.19

License

none

Unpacked Size

147 kB

Total Files

34

Last publish

Collaborators

  • edukondalu__7