Skip to content
v0.2 · React and vanilla DOM

A calendar that works with your dates, not its own.

Day, week and month views with drag, resize and click-to-create. Plug in date-fns, Day.js, Luxon or Temporal, in any time zone.

npm i @weekwise/react @weekwise/adapter-date-fns date-fns
↔

Drag, resize, create

Move events between days, stretch them across midnight, or draw a new one on the timeline.

fn

Any date library

Adapters for date-fns, Day.js, Luxon and Temporal. The calendar never reads a date on its own.

TZ

Time zones built in

Show the calendar in any IANA zone: days start at its midnight, wherever the user is.

▦

Day, week, month

Month rows fit as many lanes as they can and collapse the rest into “+N more”.

{}

Theme with CSS variables

Colors, radius and the time column come from --ww-* variables, in a cascade layer your CSS overrides.

TS

Typed end to end

Generic over your event type and your date type. SSR and the Next.js App Router work.

The layout logic lives in @weekwise/core. The React and DOM packages render it the same way and share one theme of CSS variables.

import Calendar, { DateLocalizationProvider } from "@weekwise/react";
import { DateFnsAdapter } from "@weekwise/adapter-date-fns";
import "@weekwise/react/styles.css";
<DateLocalizationProvider adapter={DateFnsAdapter}>
<Calendar
items={events}
eventKeyResolver={(e) => e.id}
eventTimeFrameResolver={(e) => ({ start: e.start, end: e.end })}
onEventChange={move}
>
{(event) => <div>{event.title}</div>}
</Calendar>
</DateLocalizationProvider>
date-fns Day.js Luxon Temporal