A react date range picker to using @material-ui. Live Demo: https://flippingbitss.github.io/react-daterange-picker/
The react-daterange-picker is a date range picker for React that utilizes material-ui components. It allows users to select a range of dates and comes with various customization options.
To install the react-daterange-picker, you can follow these steps:
npm install react-daterange-picker
or
yarn add react-daterange-picker
import { DateRangePicker } from 'react-daterange-picker';
import 'react-daterange-picker/dist/css/react-calendar.css';
const MyComponent = () => {
const [dateRange, setDateRange] = useState();
const handleDateChange = (selectedRange) => {
setDateRange(selectedRange);
}
return (
<DateRangePicker
value={dateRange}
onChange={handleDateChange}
/>
);
}
The react-daterange-picker is a powerful and customizable date range picker for React applications. It provides various features such as a live demo, easy usage, and customization options through props. By following the installation guide, users can quickly integrate the picker into their projects and start selecting date ranges with ease.