Skip to content
Twentyfirst UIPro

Event Invite

Data · EventInvite

View as Markdown

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 (changes says what), status="cancelled" strikes it through and offers "Remove from calendar" (onRemove) when it is in the calendar.
  • response/onRespond (or defaultResponse) hold your reply; busy while 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

PropTypeNotes
titlestringRequired
startDate | string | numberRequired
endDate | string | numberRequired
allDay?boolean
location?string
organizer?{ name: string; email?: string }
guests?numberNumber 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?ReactNodeWhat changed, for an update ("New time: 15:00").
response?CalendarRsvp | nullYour answer (controlled) / initially / when a button is pressed.
defaultResponse?CalendarRsvp | null
onRespond?(response: CalendarRsvp) => void
onAddToCalendar?() => voidShows "Add to calendar"; with `added` it says "In your calendar".
added?boolean
onRemove?() => voidFor a cancelled event that is in the calendar: "Remove from calendar".
busy?booleanA reply is being sent: buttons wait.
className?stringExtra class on the root element.
style?CSSPropertiesInline style on the root element.