An open API service indexing awesome lists of open source software.

https://github.com/bene/react-week-calendar

[wip] A zero dependency week calendar for React.
https://github.com/bene/react-week-calendar

Last synced: 26 days ago
JSON representation

[wip] A zero dependency week calendar for React.

Awesome Lists containing this project

README

          

![Example](.github/example.png)

# react-week-calendar

A zero dependency week calendar for React.

## Example

```typescript
import Calendar, { CalendarEvent } from "../../core/src";

type EventWithType = CalendarEvent & { type: "Work" | "Leisure" };

function App() {
const [events, setEvents] = useState([
{
id: crypto.randomUUID(),
title: "Meeting",
start: new Date(2023, 0, 2, 10, 30, 0),
end: new Date(2023, 0, 2, 12, 30, 0),
type: "Work",
},
{
id: crypto.randomUUID(),
title: "Cinema",
start: new Date(2023, 0, 4, 13, 0, 0),
end: new Date(2023, 0, 4, 15, 0, 0),
type: "Leisure",
},
]);

return (


({ ...event, type: "Work" as const })}
abstract
/>

);
}
```

## Roadmap

- [ ] Touch support
- [ ] Mobile support
- [ ] Cross-day events
- [ ] Overlapping events
- [ ] Custom styles support
- [ ] Remove Tailwind