Skip to content

Event Calendar

Pro

A team calendar with Month, Week, Day, and Agenda views. People move and resize events with the pointer, touch, or keys. A failed save goes back.

  • Base UI
  • React Aria
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 10, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Event Calendar needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
76
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Put the navigation in the header and the views in the body. The calendar shows the view that is on.

team-calendar.tsx

EventCalendarBody

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

EventCalendarEmpty

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

EventCalendarError

<div>
PropTypeDefaultDescription
classNamestring—
childrenReactNode—More actions beside "Retry".
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

EventCalendarSaveError

<div>
PropTypeDefaultDescription
classNamestring—
childrenReactNode—More actions beside "Retry".
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

EventCalendarHeader

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

EventCalendarDetails

<div>
PropTypeDefaultDescription
classNamestring—
arrowboolean—Show an arrow that points at the trigger. The gap grows from 4px to 8px.
backdropboolean—Put a clear layer under the popup (Base UI Popover.Backdrop), for example to dim it.
padding"default""none""tight"—default: radius 14, 12px padding and 10px between the parts, 288px wide. tight: 4px padding and 4px between the parts, as wide as the content: a row of 28px actions (a plain Toolbar) with the 4px inset of the bar recipe, 38px high (the selection pill of the Quote Reply). none: no padding and no gap, as wide as the content: a panel that lays out its own parts edge to edge (a head with a rule, a scroll box, a docked composer: the Chat Popup). Give it a width and a height with layout classes; the body fills that height.
portalProps—Other Base UI props of the inner parts. A className here adds to the component classes.
positionerProps—
backdropPropsPopupPartProps<PopoverBackdropProps>—
arrowPropsPopupPartProps<PopoverArrowProps>—
closeButtonProps—
children—The parts inside, or a function of the event for its actions. Default: the four info parts.
From Base UIPopover.PortalBase UI docs
anchor—An element to position the popup against. By default, the popup will be positioned against the trigger.
positionMethod"absolute""fixed"'absolute'Determines which CSS position property to use.
side"bottom""inline-end""inline-start""left""right""top"'bottom'Which side of the anchor element to align the popup against. May automatically change to avoid collisions.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

EventCalendarDetailsHeader

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

EventCalendar

<div>
PropTypeDefaultDescription
defaultValueCalendarDate—The anchor date at first. Default: today in the zone. On a server-rendered page the first render uses the server day, and today in the browser comes after hydration.
defaultView"agenda""day""month""week"—The view at first. Default week.
defaultEvents—
defaultTimeZonestring—The zone at first. Default: the zone of the browser. On a server-rendered page the first render uses UTC, and the browser zone comes after hydration.
onEventsChange—The app saves here. Return a promise to hold the new place until it settles: a rejected promise puts the event back and shows "Retry". With events, set the new list when it resolves.
valueCalendarDate—The anchor date. Any day inside the range to show.
onValueChange—
view"agenda""day""month""week"—
onViewChange—
events—The list of events. The app expands recurring events: each one is one instance.
timeZonestring—The IANA zone of the grid.
onTimeZoneChange—
viewsreadonly CalendarView[]—The views on offer. Default all four; a phone drops week.
slotMinutesnumber—The size of one step of a move, in minutes. Default 15.
status"empty""error""loading""ready"—The load state. The grid stays on screen in each one. Default ready.
onRetry—"Retry" of the error status.
onSlotSelect—A press or Enter on a free slot: the span of a new event.
onEventSelect—The selected event changed: open your own panel from it.
readOnlyboolean—No move and no resize. A press still opens the details.
disabledboolean—No press and no focus on the grid; the toolbar is off.
variant"card""soft""solid"—The look of every event: soft (default), a tint of the event color with a ring of the same hue; solid, the event color as the fill; card, a neutral card with a dot of the event color.
nownumber | Date—The fixed time of a story or a test. Default: the page clock.
localestring—
weekStart"fri""mon""sat""sun""thu""tue""wed"—The first day of a week. Default: from the locale.
labels—
driverRef—A drag that code drives (a staged scene, a test): pickUp(at, eventId) presses the event at at (on its end handle: a resize), carry moves, drop saves, putBack cancels. It goes through the same machine as a pointer drag, and sends no pointer event.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

EventCalendarEventTitle

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

EventCalendarEventTime

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

EventCalendarWeekView

<div>
PropTypeDefaultDescription
childrenEventContentRender—The content of each event. Default: EventCalendarEventTitle and EventCalendarEventTime.
startHournumber—The first hour the grid shows. Default 0.
endHournumber—The hour the grid ends at. Default 24.
scrollToHournumber—The hour at the top when the view opens.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

EventCalendarDayView

<div>
PropTypeDefaultDescription
childrenEventContentRender—The content of each event. Default: EventCalendarEventTitle and EventCalendarEventTime.
startHournumber—The first hour the grid shows. Default 0.
endHournumber—The hour the grid ends at. Default 24.
scrollToHournumber—The hour at the top when the view opens.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

EventCalendarMonthView

<div>
PropTypeDefaultDescription
childrenEventContentRender—The content of each event. Default: EventCalendarEventTitle and EventCalendarEventTime.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

EventCalendarAgendaView

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

EventCalendarWeekStrip

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

EventCalendarTimeZone

PropTypeDefaultDescription
timeZonesreadonly string[]—The zone ids to list. Default: Intl.supportedValuesOf("timeZone") (418 in Chrome and Node 22).
dateDate—The moment of every offset. Default: now, read when the list opens. Pass the event date, so a 5 Nov event shows Belgrade at GMT+1 (after the clocks change), not the GMT+2 of today.
localTimeZonestring | null—The zone of the pinned "Your time zone" group. Default: the zone of the browser. null hides the group. A zone that is not in timeZones is not pinned.
labelsPartial<{ localGroup: string; }>—The words (TIME_ZONE_SELECT_LABELS). Keep the object stable.
getItemLabel—The text of a row, sorted and searched. Default: the city (zone.city).
getGroupLabel—The name of a region group ("Europe"). Default: the region; "Other" for ids with no area.
isItemDisabled—Rows that the user cannot pick. They stay in the list at 50%.
classNamestring—
From Base UICombobox.RootBase UI docs
namestring—Identifies the field when a form is submitted.
formstring—Identifies the form that owns the internal input. Useful when the combobox is rendered outside the form.
idstring—The id of the component.
  • Pass events and onEventsChange, or defaultEvents for a list that the calendar owns.
  • Return a promise from onEventsChange to save: a rejection puts the event back and shows Retry.
  • Set variant to soft, solid, or card for the look of every event.
  • Use onSlotSelect to open your own form for a new event.
TabMoves into the view. The view is one tab stop.
Up ArroworDown ArroworLeft ArroworRight ArrowMoves the focus between slots, days, and events.
AltArrowMoves the focused event by one slot or one day.
ShiftAltArrowMakes the focused event longer or shorter.
EnterOpens the details of the focused event, or asks for a new event on a free slot.
SpaceSelects the focused event, or saves a key move.
EscPuts a key move back, closes the details, or clears the selection.

Each event is a button whose name holds its title and its time.

The details popup takes its name from the event title and its description from the day and time.

Every move and resize also works with keys, with no drag.

Touch: hold an event to lift it; a selected event shows its resize handle.

Details
popup · 150ms · ease-panel (0.2, 0.4, 0.2, 1) · fades in and scales from 95%
Error bar
fade · 150ms · fades in over the grid
Drag
press · the lifted event follows the pointer and snaps to its slot; a view change or a key move does not animate

Built with

Installs with Event Calendar

  1. AddedEvent Calendar, with Avatar, Badge, Button, Empty, Popover, Segmented Control, Skeleton.
Open the release