Skip to content
caliper ui docs

Components

Calendar app

A full calendar: day, week, month and agenda, a month picker and calendar toggles, a now line, and events you create by dragging, move by dragging or with Alt and the arrows, and edit in place.

Free
pnpm dlx shadcn@latest add @caliper/calendar-app

11–17 October 2026

All day
Close stand-up09:00–09:30
Ostra security review11:00–12:30 · Meet
Design review10:00–11:00
Kestrel follow-up10:30–11:15
Lunch with Inês13:00–14:00 · Taberna da Rua
Focus: Q4 forecast14:00–17:00
Northwind workshop15:00–16:30 · London office
1:1 Tomás09:30–10:00
Yoga18:00–19:00

Each event can be moved with Alt and the arrow keys, and made longer or shorter with Alt, Shift and Up or Down. Enter opens it.

State
Installs components/ui/calendar-app.tsxDepends on @radix-ui/react-dialog, @radix-ui/react-popover, @radix-ui/react-slot, lucide-reactMotion shared motion tokens

When to use

Use it for

  • Scheduling, bookings, team rotas and content calendars.
  • Products where people plan their own time.

Skip it when

  • Choosing one free slot; use the availability scheduler.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/calendar-app

Adds its 18 files to components/ui/, each with its own stylesheet, and installs their packages. No account needed. The first part also adds Caliper UI’s tokens; import them once as in Installation.

Usage

This is the code behind the preview above.

example.tsx
import { useState } from "react"
import { CalendarApp, type CalendarAppEvent } from "@/components/ui/calendar-app"

const initialEvents: CalendarAppEvent[] = [
  { id: "c1", title: "Close stand-up", start: "2026-10-12T09:00", end: "2026-10-12T09:30", calendar: "team" },
  { id: "c2", title: "Ostra security review", start: "2026-10-12T11:00", end: "2026-10-12T12:30", calendar: "sales", location: "Meet" },
  { id: "c3", title: "Lunch with Inês", start: "2026-10-13T13:00", end: "2026-10-13T14:00", calendar: "personal", location: "Taberna da Rua" },
  { id: "c4", title: "Design review", start: "2026-10-13T10:00", end: "2026-10-13T11:00", calendar: "team" },
  { id: "c5", title: "Kestrel follow-up", start: "2026-10-13T10:30", end: "2026-10-13T11:15", calendar: "sales" },
  { id: "c6", title: "Board pack due", start: "2026-10-14T00:00", end: "2026-10-14T23:59", calendar: "team", allDay: true },
  { id: "c7", title: "Focus: Q4 forecast", start: "2026-10-14T14:00", end: "2026-10-14T17:00", calendar: "personal" },
  { id: "c8", title: "Northwind workshop", start: "2026-10-15T15:00", end: "2026-10-15T16:30", calendar: "sales", location: "London office" },
  { id: "c9", title: "1:1 Tomás", start: "2026-10-16T09:30", end: "2026-10-16T10:00", calendar: "team" },
  { id: "c10", title: "Yoga", start: "2026-10-16T18:00", end: "2026-10-16T19:00", calendar: "personal" },
  { id: "c11", title: "Month-end close", start: "2026-10-30T00:00", end: "2026-10-30T23:59", calendar: "team", allDay: true },
  { id: "c12", title: "Team lunch", start: "2026-10-23T12:30", end: "2026-10-23T14:00", calendar: "team" },
];

export function CalendarAppDemo() {
  const [events, setEvents] = useState(initialEvents);
  // No AppFrame: the calendar is Free, so its example must compile with Free parts only.
  return (
    <CalendarApp
      events={events}
      onEventsChange={setEvents}
      today="2026-10-13"
      now="2026-10-13T10:42"
      calendars={[
        { id: "team", label: "Team", tone: 1 },
        { id: "sales", label: "Sales", tone: 2 },
        { id: "personal", label: "Personal", tone: 3 },
      ]}
    />
  );
}

API reference

CalendarApp

component
PropTypeDefaultDescription
events *readonly CalendarAppEvent[]—
calendars *readonly CalendarSource[]—
onEventsChange *(events: CalendarAppEvent[]) => void—
todaystringdayKey(new Date())ISO date treated as today.
nowstring—Local date-time for the now line; defaults to the clock.
defaultViewCalendarView"week"
weekStart0 | 100 starts weeks on Sunday, like the month picker beside it; 1 on Monday.
classNamestring—

Accessibility

It exposes grid, row, gridcell, status, columnheader and alert semantics, with aria-labelledby, aria-hidden, aria-label, aria-live and aria-describedby kept in step with state. Changes that matter are announced through a live region.

KeyBehaviour
↑Moves to the previous item or value.
↓Moves to the next item or value.
←Moves to the previous item or value.
→Moves to the next item or value.
EnterActivates the focused control.

Motion

Transitions use the shared duration and easing tokens. Under prefers-reduced-motion those tokens collapse to instant and travel distances go to zero, so state changes still happen without movement.

All Calendar & media examples