Week calendarPro
A week view with calendars, a now line, and click-to-create events.
What's inside
- Calendars filter
- Now line
- Click-to-create and delete
When to use
- Scheduling, booking and team calendars.
When not to use
- Month overviews.
Installation
Usage
Import it from @/components/blocks/week-calendar after installing. It ships with sample data, so it renders straight away; swap in your own data when you're ready.
import { WeekCalendar } from "@/components/blocks/week-calendar";
export default function Page() {
return (
<main className="mx-auto max-w-6xl p-6">
<WeekCalendar />
</main>
);
}API reference
WeekCalendar
A week view with a now line, calendar filters, click-to-create and delete. Also the default export. No props: sample data sits at the top of the file, ready to swap for your own.
No props.
Keyboard interactions
| Keys | Action |
|---|---|
| Tab | Move through events, slots and filters |
| Enter | Create the event after typing its name |
| Esc | Cancel the new event |
Accessibility
- Slots and events are labelled buttons.
- Calendar filters are labelled checkboxes.
Motion
- New events grow into place; deleted ones fade out.
Responsive behavior
- The grid scrolls horizontally on phones; the filter list moves above it.
Performance
- Sample data is plain arrays at the top of the file. Replace them with your API data and keep the shapes.
Notes for AI
- Store times as ISO strings; the block works in local time.
This page as Markdown, for assistants and coding agents:
/blocks/week-calendar/markdownThe full library index for assistants is at /llms.txt.
Lode222 doc pagesllms.txt