Flatpickr

  • flatpickr is a lightweight and powerful datetime picker. Use the required class varient (e.g. range_flatpicker, date_flatpicker, wrap_flatpicker active ) for different flatpickr. For more details
  • Installation
    npm i react-flatpickr
    Script
    import Flatpickr from "react-flatpickr";
    
    const Flatpicker = () => {
        return (
            <div className="form-group mb-0 ">
            <Flatpickr options={ mode: "range", minDate: "today" } className="form-control range_flatpicker" placeholder="24 Jan 2022 to 23 Feb 2022" />
            </div>
        )
    }