Event Calendar - Views
Configure available views including week, day, month, and agenda, and control the default view.
Alice's Birthday
Morning Run
Team Meeting
Gym Class
Yoga
1-on-1 with Sarah
Code Review
4th of July BBQ
Use the viewConfig prop to limit the hours displayed in the time grid with startTime and endTime:
Alice's Birthday
Team Meeting
Gym Class
1-on-1 with Sarah
Code Review
4th of July BBQ
By default, the time grid scrolls to 7 AM when it mounts (or to startTime when 7 AM isn't a displayed hour).
Use initialScrollTime to scroll to a different hour.
Navigating to another week keeps the current scroll position; switching to another view and back scrolls again.
Alice's Birthday
Morning Run
Team Meeting
Gym Class
Yoga
1-on-1 with Sarah
Code Review
4th of July BBQ
Use timeGridEvents to choose which timed events are rendered in the time grid.
The other events, including all-day events, are rendered in the day grid above it:
'shorter-than-one-day'(default): timed events shorter than one day, split across the days they cover.'same-day-only': timed events that start and end on the same day.
Line maintenance
Morning shift
Evening shift
Night shift
Night shift
Late shift
Day view
The day view lets users manage events for a single day.
Gym Class
The viewConfig prop also limits the hours displayed in the day view with startTime and endTime:
Gym Class
By default, the time grid scrolls to 7 AM when it mounts (or to startTime when 7 AM isn't a displayed hour).
Use initialScrollTime to scroll to a different hour.
Navigating to another day keeps the current scroll position; switching to another view and back scrolls again.
Yoga
1-on-1 with Sarah
The timeGridEvents option also sets which timed events are rendered in the time grid of the day view:
Morning shift
Evening shift
Night shift
Month view
The month view lets users manage events for an entire month.
Morning Run
Team Meeting
Gym Class
Yoga
1-on-1 with Sarah
Alice's Birthday
Code Review
4th of July BBQ
Long Run
Morning Run
Sprint Planning
Client Call
Design Review
Gym Class
Happy Hour
Haircut
Team Meeting
Yoga
1-on-1 with James
Lunch with Colleague
Dentist
Client Call
Dinner with Friends
Morning Run
All-hands Meeting
Gym Class
Roadmap Planning
Client Call
Grocery Shopping
Game Night
Brunch with Parents
Morning Run
Team Meeting
Performance Review
Movie Night
Gym Class
Wrap-up Meeting
Packing for Vacation
Agenda view
The agenda view lets users manage events in a list layout.
Gym Class
Yoga
1-on-1 with Sarah
Ends 4 JulAlice's Birthday
Code Review
Ends 4 JulAlice's Birthday
4th of July BBQ
Long Run
Morning Run
Sprint Planning
Client Call
Design Review
Gym Class
Happy Hour
Haircut
Year view 🚧
With this feature, users would be able to view and manage events across an entire year.
Resource views 🚧
With this feature, users would be able to view events grouped by resource in a dedicated view.
Limit available views
Use the views prop to define which views can be accessed in the Event Calendar:
<EventCalendar views={['week', 'month']} />
Alice's Birthday
Morning Run
Team Meeting
Gym Class
Yoga
1-on-1 with Sarah
Code Review
4th of July BBQ
Gym Class
Yoga
1-on-1 with Sarah
Ends 4 JulAlice's Birthday
Code Review
Ends 4 JulAlice's Birthday
4th of July BBQ
Long Run
Morning Run
Sprint Planning
Client Call
Design Review
Gym Class
Happy Hour
Haircut
API
See the documentation below for a complete reference to all of the props and classes available to the components mentioned here.