Skip to main content

External Event Box

External Event Box light mode

The External Event Box is a container component that holds a list of events which can be dragged and dropped onto a Calendar component. When an event is dropped onto the calendar, the calendar's onEventReceived event fires with the event's details.

The component includes an optional button for creating new events using a built-in event creation popup. Events in the box can be styled individually or given component-level defaults.

Properties

NameDescriptionProperty Type
eventsAn array of event objects to display in the box. Only title is required — all other properties are optional. See Event Object Properties below.array
eventColorThe default background and border color for events in the box.string
eventTextColorThe default text color for events in the box.string
showCreateButtonWhether to display the button for creating new events using the built-in event creation popup.boolean
buttonStyleControls the color and text styling of the create event button for its default and hover states.object
flexExposes flex properties for the internal flexbox container that holds the events.object

Event Object Properties

Each item in the events array supports the following properties. Only title is required.

NameDescriptionProperty Type
titleThe title of the event. Required.string
eventColorThe border and background color of this event. Overrides the component-level eventColor.string
eventTextColorThe text color of this event. Overrides the component-level eventTextColor.string
startTimeThe default start time applied when the event is dropped onto the calendar, as a string in HH:mm:ss format.string
durationThe default duration applied when the event is dropped onto the calendar, as a string in HH:mm:ss format.string

Component Images

Light Mode

External Event Box light mode

Dark Mode

External Event Box dark mode