apps/mantine.dev/src/pages/schedule/agenda-view.mdx
import { AgendaViewDemos } from '@docs/demos'; import { Layout } from '@/layout'; import { MDX_DATA } from '@/mdx';
export default Layout(MDX_DATA.AgendaView);
AgendaView renders a vertical list of events for a specified time period. Events are grouped by
date in chronological order with date headers for each group.
Timed events show their time range, all-day events display an "All day" label, and multi-day events appear on each date they span.
<Demo data={AgendaViewDemos.allDayAndMultiday} />Use headerFormat to control the range label in the header and dateHeaderFormat to control
individual date group headers. Both accept a dayjs format string
or a callback function.
Use renderEvent to fully customize how each event row is rendered. The callback receives the
event data and default root props that you should spread onto your wrapper element.
Use onEventClick to handle event interactions. The example below opens a modal with event
details when an event is clicked.
Set locale to translate date headers and pass labels to override built-in strings like
"All day" and "No events".
Set mode="static" to disable all event interactions. In static mode, events are not clickable.