react-ultimate-calendar
Version:
A lightweight calendar for React application.
40 lines (28 loc) • 995 B
Markdown
<h1 align="center">
📅 React Ultimate Calendar
</h1>
[](https://travis-ci.org/andrii-maglovanyi/react-ultimate-calendar)

Zero dependency calendar with a localization support, dynamic or weekly range selection, and expanded view.
```bash
npm install react-ultimate-calendar
```
```jsx
import Calendar from "react-ultimate-calendar";
const start = new Date();
const end = new Date();
end.setDate(end.getDate() + 10);
const onChangeHandler = (weekNumber, startDate, end Date) => { ... }
<Calendar
locale="de-DE"
multi
onChange={onChangeHandler}
showWeekNumbers
weeksSelector
value={[start, end]} // Specify default selected range of 10 days from today
/>;
```
[ ](https://choosealicense.com/licenses/mit/)