Skip to content
+

Event Timeline - Navigation

Navigate in time to find the events you are looking for.

Default visible date

Use the defaultVisibleDate prop to initialize the visible date:

const defaultVisibleDate = DateTime.fromISO('2025-11-01');

<EventTimelinePremium defaultVisibleDate={defaultVisibleDate} />;
Resource title
2025
Nov
Dec
2026
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2027
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2028
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
MUI X Expired package version

Imperative API

To use the apiRef object, you need to initialize it using useEventTimelinePremiumApiRef() hook as follows:

const apiRef = useEventTimelinePremiumApiRef();

return <EventTimelinePremium apiRef={apiRef} events={EVENTS} />;

When your component first renders, apiRef.current is undefined. After the initial render, apiRef holds methods to interact imperatively with the Event Calendar.

Set the visible date

Use the setVisibleDate() API method to navigate to a given date:

apiRef.current.setVisibleDate({
  // The DOM event that triggered the change (we be passed to onVisibleDateChange if provided).
  event,
  // The date to navigate to.
  visibleDate,
});
Resource title
2025
Jul
Aug
Sep
Oct
Nov
Dec
2026
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2027
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2028
Jan
Feb
Mar
Apr
May
Jun
MUI X Expired package version

Use the goToNextVisibleDate() and goToPreviousVisibleDate() API methods to navigate forward and backward in time. The step size is automatically determined by the current view:

View Step
time 4 days
days 56 days (8 weeks)
weeks 16 weeks
months 36 months (3 years)
years 30 years
// Navigate to the next date range
apiRef.current.goToNextVisibleDate(event);

// Navigate to the previous date range
apiRef.current.goToPreviousVisibleDate(event);
Resource title
2025
Jul
Aug
Sep
Oct
Nov
Dec
2026
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2027
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2028
Jan
Feb
Mar
Apr
May
Jun
MUI X Expired package version