1.1.6 • Published 7 months ago

month-range-picker-react v1.1.6

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

Month Range Picker React

Month range picker is a react UI component which is easily customizable and has no depedency except react. Example of code for using the package is given below. Keep Scrolling :)

Input Box

Start Date

Hovering Effect

Activating Apply

Add Compnent

import { MonthRangePicker } from "month-range-picker-react";
import { useState } from "react";

function App() {
  const [userState, setUserState] = useState(null);
  return (
    <div className="App">
      <MonthRangePicker
        getDateRangeState={setUserState}
        applyFunc={() => console.log("Apply from parent")}
        cancelFunc={() => console.log("Cancel from parent")}
        containerWidth="400px"
        darkTheme={true}
      />
    </div>
  );
}

export default App;

Props

All props are optional.

  • getdateRangeState - function can be passed in which the current state of the picker can be saved
  • applyFunc - a callback can be passed to add event with apply button
  • cancelFunc - a callback can be passed to add event with cancel button
  • containerWidth - width measurement in css can be passed. If not the default will be 400px
  • darkMode - a boolean value to active or deactive the dark mode

Version 1.1 - Dark Mode

Input Box

Start Date

Hovering Effect

Activating Apply

1.1.6

7 months ago

1.1.4

7 months ago

1.1.3

7 months ago

1.1.2

7 months ago

1.1.1

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago