1.0.3 • Published 1 year ago

ka-calendar v1.0.3

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

React Calendar Month Component

ka-calendar is a simple calendar component using mui 5.^, developed and maintained by Pradeep(kpradeeprao@gmail.com).

Installation

Use the package manager to install ka-calendar.

yarn add ka-calendar
npm i ka-calendar

Usage

export function() {
  const { startDate, endDate, timesheets } = useUser();
  const [theDate, setTheDate] = useState(new Date());

  return <CalendarMonth
        value={theDate}
        setValue={setTheDate}
        minValue={startDate}
        maxValue={endDate}
        badgeValues={timesheets.map((x) => ({
          dt: x.date,
          value: x.hours,
        }))}
      ></CalendarMonth>
}

Demo

Demo

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT