Event Invite
Data · EventInvite
An invitation inside a mail: date, time, place, organizer and guests, what else is in the calendar at that time (others, [] for "nothing else"), and Accept, Maybe and Decline with "Add to calendar".
status="updated"marks changes from the organizer (changessays what),status="cancelled"strikes it through and offers "Remove from calendar" (onRemove) when it is in the calendar.response/onRespond(ordefaultResponse) hold your reply;busywhile it is being sent.
Invitation
Quarterly planning
Mon, Apr 20 · 10:00 AM – 11:30 AM
Room 4, second floor
Lena Hart lena@example.com · Organizer
8 guests
Also in your calendar then
10:00 AM – 10:15 AMStandup
InvitationUpdated
Partner call with Northwind
New time: Tuesday 15:00 instead of Monday 14:00.
Tue, Apr 21 · 3:00 PM – 4:00 PM
Video call
Noah Berg noah@example.com · Organizer
Nothing else in your calendar then
Your reply: Accepted
In your calendar
InvitationCancelled
Team offsite
The organizer cancelled this event.
Wed, Apr 22 · 9:00 AM – 5:00 PM
Mara Ellis · Organizer
Props
EventInvite
| Prop | Type | Notes |
|---|---|---|
title | string | Required |
start | Date | string | number | Required |
end | Date | string | number | Required |
allDay? | boolean | |
location? | string | |
organizer? | { name: string; email?: string } | |
guests? | number | Number of guests. |
others? | { title: string; start: Date | string | number; end: Date | string | number; allDay?: boolean; tint?: Tint; }[] | What else is in the calendar at that time; `[]` says the time is free. |
status? | "new" | "updated" | "cancelled" | "updated" (the organizer changed it) or "cancelled". |
changes? | ReactNode | What changed, for an update ("New time: 15:00"). |
response? | CalendarRsvp | null | Your answer (controlled) / initially / when a button is pressed. |
defaultResponse? | CalendarRsvp | null | |
onRespond? | (response: CalendarRsvp) => void | |
onAddToCalendar? | () => void | Shows "Add to calendar"; with `added` it says "In your calendar". |
added? | boolean | |
onRemove? | () => void | For a cancelled event that is in the calendar: "Remove from calendar". |
busy? | boolean | A reply is being sent: buttons wait. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |