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>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EventCalendarEmpty
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EventCalendarError
<div>EventCalendarSaveError
<div>EventCalendarHeader
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EventCalendarDetails
<div>| Prop | Type | Default | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| arrow | boolean | — | Show an arrow that points at the trigger. The gap grows from 4px to 8px. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| backdrop | boolean | — | 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. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| portal | — | Other Base UI props of the inner parts. A className here adds to the component classes. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| positioner | — | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| backdrop | PopupPartProps<PopoverBackdropProps> | — | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| arrow | PopupPartProps<PopoverArrowProps> | — | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| close | — | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| position | "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>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EventCalendar
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| default | CalendarDate | — | 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. |
| default | "agenda""day""month""week" | — | The view at first. Default week. |
| default | — | ||
| default | string | — | 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. |
| on | — | 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. | |
| value | CalendarDate | — | The anchor date. Any day inside the range to show. |
| on | — | ||
| view | "agenda""day""month""week" | — | |
| on | — | ||
| events | — | The list of events. The app expands recurring events: each one is one instance. | |
| time | string | — | The IANA zone of the grid. |
| on | — | ||
| views | readonly CalendarView[] | — | The views on offer. Default all four; a phone drops week. |
| slot | number | — | 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. |
| on | — | "Retry" of the error status. | |
| on | — | A press or Enter on a free slot: the span of a new event. | |
| on | — | The selected event changed: open your own panel from it. | |
| read | boolean | — | No move and no resize. A press still opens the details. |
| disabled | boolean | — | 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. |
| now | number | Date | — | The fixed time of a story or a test. Default: the page clock. |
| locale | string | — | |
| week | "fri""mon""sat""sun""thu""tue""wed" | — | The first day of a week. Default: from the locale. |
| labels | — | ||
| driver | — | 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>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
EventCalendarEventTime
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
EventCalendarWeekView
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| children | EventContentRender | — | The content of each event. Default: EventCalendarEventTitle and EventCalendarEventTime. |
| start | number | — | The first hour the grid shows. Default 0. |
| end | number | — | The hour the grid ends at. Default 24. |
| scroll | number | — | The hour at the top when the view opens. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EventCalendarDayView
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| children | EventContentRender | — | The content of each event. Default: EventCalendarEventTitle and EventCalendarEventTime. |
| start | number | — | The first hour the grid shows. Default 0. |
| end | number | — | The hour the grid ends at. Default 24. |
| scroll | number | — | The hour at the top when the view opens. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EventCalendarMonthView
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| children | EventContentRender | — | The content of each event. Default: EventCalendarEventTitle and EventCalendarEventTime. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EventCalendarAgendaView
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EventCalendarWeekStrip
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
EventCalendarTimeZone
| Prop | Type | Default | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| time | readonly string[] | — | The zone ids to list. Default: Intl.supportedValuesOf("timeZone") (418 in Chrome and Node 22). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| date | Date | — | 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. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| local | string | 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. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| labels | Partial<{ localGroup: string; }> | — | The words (TIME_ZONE_SELECT_LABELS). Keep the object stable. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| get | — | The text of a row, sorted and searched. Default: the city (zone.city). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| get | — | The name of a region group ("Europe"). Default: the region; "Other" for ids with no area. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| is | — | Rows that the user cannot pick. They stay in the list at 50%. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| class | string | — | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From Base UICombobox.RootBase UI docs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name | string | — | Identifies the field when a form is submitted. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| form | string | — | Identifies the form that owns the internal input. Useful when the combobox is rendered outside the form. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id | string | — | The id of the component. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Tab | Moves into the view. The view is one tab stop. |
|---|---|
| Up ArroworDown ArroworLeft ArroworRight Arrow | Moves the focus between slots, days, and events. |
| AltArrow | Moves the focused event by one slot or one day. |
| ShiftAltArrow | Makes the focused event longer or shorter. |
| Enter | Opens the details of the focused event, or asks for a new event on a free slot. |
| Space | Selects the focused event, or saves a key move. |
| Esc | Puts a key move back, closes the details, or clears the selection. |
Built with
Installs with Event Calendar











