Team calendar

A React block (a whole screen) in Beamline's Events & bookings app.

A team's schedule: the people and shared calendars to show (each its colour), a month to jump by, who is out this week, and the week, day or month of events — drag to move or resize, drag across empty time to schedule, an event opened with its details and Cancel; every change optimistic and refused with the reason.

Use it for

  • A team's shared schedule: meetings, on-call, interviews, time off — see who is free, move a meeting, book a new one.

Not for

Anatomy

  • app shell (your navigation, team mark), New event in the top bar
  • side panel (a sheet behind Calendars in a narrow room): a month to jump to any day, the calendars to show with their colours and counts, who is out this week
  • the schedule: week by default, day or month; events side by side when they overlap, a line at now
  • new event dialog: title, calendar, date, start and end, location; from a dragged slot it opens filled in
  • event sheet: when, where, which calendar, status; Cancel event asks in place

States

  • loading (skeleton events; the grid keeps its place)
  • failed to load (the error with Try again)
  • nothing in the range (the grid's quiet note)
  • a calendar hidden (its events leave the grid; its count stays)
  • a move or resize refused by the rules before it is sent (outside working hours, read-only) — the calendar's own status line says why
  • a change, a new event or a cancellation saving, refused by your API (put back; the reason above the schedule with Try again)
  • tentative (dashed) and cancelled (struck through)

Keyboard

  • the calendar's own: arrows between events, Space grabs and walks one, Enter opens it
  • the side month: arrows by day and week, Enter jumps the schedule there
  • dialogs trap focus and return it

Motion

An event follows the pointer while dragged and settles snapped; a hidden calendar's events fade out; a new event grows in where it was drawn. Reduced motion: places at once.

Props

PropTypeDefaultDescription
events / defaultEvents / onEventsChangeCalendarEvent[]—
calendars (required){ id: string; label: string; color?: string; person?: boolean }[]—
onChange(change: { id: string; start: Date; end: Date; kind: "move" | "resize" }) => Promise<void> | void—Saves a move or resize; a rejection puts the event back and shows why.
onCreate(draft: Omit<CalendarEvent, "id">) => Promise<CalendarEvent | void> | void—Saves a new event; resolve with the stored event (its id) or nothing. Shows New event and drawing on empty time.
onCancel(id: string) => Promise<void> | void—
canChange(event, next) => true | string—Rules checked before a move is sent.
outOfOffice{ name: string; from: Date; to: Date; reason?: string }[]—
loading / error / onRetryboolean / Error | null / () => void—
teamstring"Northline"
navAppShellNavGroup[]—
className / style / refstring / CSSProperties / Ref<HTMLDivElement>—className: Classes on the documented visual root; no override by default. style: Inline styles on the documented visual root; no overrides by default. ref: Receives the documented native target or imperative handle; omitted by default.
eventsCalendarEvent[]—
defaultEventsCalendarEvent[]—
onEventsChange((events: CalendarEvent[]) => void)—
defaultViewCalendarView—
defaultDateDate—
loadingboolean—
errorError | null—
onRetry(() => void)—
defaultSidebarOpenboolean—
classNamestring—Classes on the documented visual root; no override by default.
styleCSSProperties—Inline styles on the documented visual root; no overrides by default.
refRef<HTMLDivElement>—Receives the documented native target or imperative handle; omitted by default.

Built from

Dependencies

lucide-react

Import

import { TeamCalendar } from "@beamline/team-calendar";

Get it

Team calendar is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Get Beamline · Connect your agent

More in Events & bookings

  • Day agenda: One person's days with notes, tasks and calendar events side by side, each kept as what it is. A task's scheduled day, deadline, reminder and repeat are…
  • Crew booking: Booking crew for a project: each person with a strip of the project's days, days in the same state joined into one run said once (booked solid, available…
  • Resource booking: Booking something shared (a room, a van, a camera kit). Choose what, then either a free hour on a day: a grid of starts the app says are free (a taken…
  • Resource rules: Each person's scheduling rules beside their day, the day board leading: role, available (an unavailable day filled in the danger tint and said, a job…
  • Desk booking: Desks in an office for the people who book them and the admin who sets how far ahead. Your days over the next weeks: booked with a desk, free to book…
  • Linked appointments: A drop-off and a pickup kept as one linked pair on the week's calendar (the shared event calendar, day view on a phone), with the car's stay drawn…
  • Waitlist desk: A front desk's waitlist beside the day's book: who is waiting (filters as chips, the queue's count apart from the day's), the day's bookings and the…
  • Visitor desk: An office front desk's visitors. Invite a meeting's guests from the calendar: colleagues are shown but never invited, guests without an email are said…
  • Issued ticket: One issued event ticket at the door, led by the ticket itself: what it admits to (event and venue), when, the section, seat and who it admits, and its…
  • Itinerary: A trip's days where every event says who sees it, in words: everyone, only Ana and Ben, or hidden from Leo. The same rules give each traveller their own…
  • Trip budget: A trip's money against its plan, in the trip's own currency. The budget (set or changed in place; a refused save keeps what was typed), what's spent and…
  • Proposal payments: A travel proposal's money from the agent's side to the client's. Pricing: the price rule (markup on supplier cost, a fixed price, or net), what the…
  • Project periods: A project's time periods (build, show, teardown) on one time scale, the thing being planned: each period a bar across its days with the crew and gear…

Part of Beamline UI: polished, editable React components and complete screens for custom applications. Build your own style from any look; tokens, fonts, radii, motion; not only colours.