Moltenship Time
API reference

Overview

What each package exports, and where to import it from.

Import from @moltenship/calendar. It includes the React components and hooks, the event engine, the Temporal helpers, and the pointer interactions, so one import line covers the calendar:

import { createCalendar, defineCalendarView, plainDateInterval } from "@moltenship/calendar";

The iCalendar parser, @moltenship/ics, stands alone. @moltenship/calendar doesn't re-export it, so install it and import it by its own name. It doesn't need the calendar either.

Packages

PackageContentsDependencies
@moltenship/calendarRe-exports the four calendar- packages belowThose four; React 19 (peer)
@moltenship/calendar-reactcreateCalendar, defineCalendarView, components, hooks, storecalendar-core, calendar-temporal; React 19 (peer)
@moltenship/calendar-coreAdapters, validation, snapshots, queries. No React.calendar-temporal, @flatten-js/interval-tree
@moltenship/calendar-temporalRanges, grids, rounding, zoned days, DSTNone
@moltenship/calendar-dndPointer drag, resize, and create for viewscalendar-core, calendar-temporal; React 19 (peer)
@moltenship/icsiCalendar parsing into Temporal values. Not re-exported.None

Every package is ESM only. Import from the package name: paths inside a package aren't part of the API.

Edit on GitHub

Last updated on

On this page