Add Modern Calendar to a SharePoint Online page
In my previous blog, I explained how to create a modern calendar view in SharePoint Online/Microsoft Lists. In this blog we will see how to add the modern calendar to a SharePoint online page.
We have a List web part in SharePoint online which allows you to display a list from your site on a page. But currently it doesn’t support modern calendar views. So, you will need to use below workaround to add Modern Calendar to a SharePoint Online page.
Workaround
We can use Embed web part in SharePoint online to add modern calendar to a page.
Follow below steps to embed modern calendar to a page:
1. Go to your SharePoint list and open the calendar view.
2. Copy the URL of calendar view from browser and note it down as we will use it in later steps.
3. Go to your modern SharePoint page and open it in Edit mode by clicking Edit button from top right corner.
4. Add Embed web part on your page and open it in edit mode.
5. Construct the embed code using the <iframe> tag in below format:
<iframe src="https://<tenant>.sharepoint.com/sites/siteName/Lists/ContentScheduler/Calendar.aspx" width="100%" height="600"></iframe>
6. Replace src attribute in above code with the URL of calendar view we noted in step 2.
7. In the property pane of Embed web part, paste the embed code into the Website address or embed code box.

7. Close property pane of Embed web part and Publish/Republish the page.
You will see the final output on SharePoint page like given below:

UPDATE: SharePoint out of the box List web part now supports modern calendar views (to show on modern pages), see Add Modern Calendar to a SharePoint Online page using List web part.



