ka-calendar
v1.0.3
Published
ka-calendar is a simple calendar component using mui 5.^, developed and maintained by Pradeep([email protected]).
Downloads
4
Readme
React Calendar Month Component
ka-calendar is a simple calendar component using mui 5.^, developed and maintained by Pradeep([email protected]).
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
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.