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-fnsDrag, resize, create
Move events between days, stretch them across midnight, or draw a new one on the timeline.
Any date library
Adapters for date-fns, Day.js, Luxon and Temporal. The calendar never reads a date on its own.
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.
Typed end to end
Generic over your event type and your date type. SSR and the Next.js App Router work.
Same calendar, with or without React
Section titled “Same calendar, with or without React”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>import { createCalendar } from "@weekwise/dom";import { DateFnsAdapter } from "@weekwise/adapter-date-fns";import "@weekwise/dom/styles.css";
const calendar = createCalendar(element, { adapter: new DateFnsAdapter(), items: events, eventKeyResolver: (e) => e.id, eventTimeFrameResolver: (e) => ({ start: e.start, end: e.end }), renderEvent: (e) => e.title, onEventChange: move,});