Skip to Content
Welcome to DayFlow 🎉

Custom Event Detail Content

When a user selects an event, the calendar opens a side panel. The customDetailPanelContent prop lets you replace the panel body with business specific content and actions.

January 2026

Mon
Tue
Wed
Thu
Fri
Sat
Sun

Key Points

  • customDetailPanelContent receives a React component that only renders the inner content—the wrapper and positioning remain managed by the library.
  • The component gets event, onEventUpdate, onEventDelete, and onClose callbacks so you can mutate or remove events and dismiss the panel.
  • Render any UI you need: forms, quick links, tags, KPIs, and more.

Sample Snippet

const CustomContent = ({ event, onEventUpdate }: EventDetailContentProps) => ( <div> <h3>{event.title}</h3> <button onClick={() => onEventUpdate({ ...event, color: '#2563eb' })}> Update color </button> </div> ); const calendar = useCalendarApp({ views, events, customDetailPanelContent: CustomContent, }); <DayFlowCalendar calendar={calendar} customDetailPanelContent={CustomContent} />;

Pass the same component to DayFlowCalendar and the default panel will render your custom content.