This SharePoint Online tutorial, we will discuss how to use the SharePoint Online modern list and document library web part in the modern SharePoint Online page.
In the same way, we can use the list or document library web part in SharePoint 2019.
List web part and Document Library web part in SharePoint
The list web part in SharePoint Online allows us to display a list from the SharePoint site on a page and it allows us to customize with our own title, view, and size, etc.
Users also can filter, sort, view, and group the list. Apart from this formatted columns, nested groups, and attention view can be displayed in the list web part.
As of today, below are the lists which you can add into a modern SharePoint page:
- Custom lists
- Announcement lists
- Contact lists
- Issue tracking lists
Similarly, by using the document library web part, you can display a document library in the modern SharePoint Page.
In the document library web part, we need to specify the view or folder of the library which you want to display. Users can also pin a document to the top of the library, download, delete and rename files, or can go the full document library by clicking See all.
Also, files can be shown in the details view to tiles view and column formatting and nested folders created in the source list.
Here, I have a SharePoint list which has columns like:
- Title
- Delivery Date
- Delivery By etc
You can also add few items to the SharePoint list.
Add List Web Part in Modern Pages in SharePoint Online/2019
Now, we will see how to add a list web part in modern pages in SharePoint Online or SharePoint 2019.
Step-1:-
Edit SharePoint modern page and click on the “+” option to add the Web Part. After clicking the option, a search box will appear on that site. In that box, Search “List” Web Part. Then click on “List(preview)” like the below screenshot.

Step-2:-
After adding the “List” Web Part, automatically the Lists will be shown to us, you can see the “Announcement” List as below. Just click on that “Announcement”.

Step-3:-
Now it will display the all “Items” of that “Announcement” List like as the given screenshot.

Step-4:-
Click on the “Edit” button of the list web part. You can see the List web part properties box, here give a “List” name, I gave “Announcement” as list name and “View” as “All Items”.
Here, you can also provide the folder name as well as the Size of the web part. I have given the Size as Autosize – fit to number of items.
Apart from this, you can also choose the below options:
- Small – about 5 items
- Medium – about 15 items
- Large – about 30 items

Step-5:-
After Publishing the Site/Subsite, the items of the “Announcement” list will display as like below.

Add Document Library web part in Modern Pages in SharePoint Online/2019
Now, we will see how to add document library web part in modern pages in SharePoint Online or SharePoint 2019.
Edit the modern page in SharePoint Online or SharePoint server 2019 and then click on the + icon and then you can see Document Library web part is there, click on that to add the document library web part.

Then you can see it will display all the supported document libraries, choose the particular document library which you want to add.

Once you select the particular document library, it will display the documents available in the document library like below:

Here you can also change the list view like list view or compact list view.

You can also edit the document library web part to change various properties like a document library, view, folder, size, etc.

If you are new to SharePoint Online modern experience, then you can read below SharePoint Online modern UI tutorials:
- How to use People web part in SharePoint Online
- View in File Explorer is missing in SharePoint Online Modern document library
- SharePoint Online Modern List: Explore 11 New Features
- Quick Chart Web Part in Modern SharePoint Online Site
- SharePoint Online Group Calendar Web Part Tutorial
- How to Add List View Web Part in SharePoint Online Modern Site
- Hero Web Part in SharePoint Online Modern Site
- How to set modern homepage in classic SharePoint site in SharePoint Online Office 365?
- Hub Sites SharePoint Online Office 365 Tutorial Download PDF Free
Conclusion
Here we have discussed how to add SharePoint Online modern list web part into the site home page.
Also, we learned how to add document library web part in modern pages in SharePoint Online or SharePoint 2019.
I am Bijay a Microsoft MVP (8 times – My MVP Profile) in SharePoint and have more than 15 years of expertise in SharePoint Online Office 365, SharePoint subscription edition, and SharePoint 2019/2016/2013. Currently working in my own venture TSInfo Technologies a SharePoint development, consulting, and training company. I also run the popular SharePoint website EnjoySharePoint.com
For some reason no one ever wants to talk about how to use the Folder field on a List web part. I have enabled folders on my Issue List and want to show data in a specific folder, but anything I try to enter in that Folder field results in an “The path is not valid.” error. There is no explanation on what format you are supposed to use to enter a correct path to the folder. If I just enter a folder name, I get the same error. Is there any information on how to use the Folder field for a modern List Web Part?
No sooner had I posted about the Folder field then I found out it has something to do with having multiple Folder content types in my list. When I tried the folder name of a folder with the different content type it worked. Then I was also able to create sub-folders and use those in the path using “/” (e.g., “top folder name/sub folder1 name/etc.”). Not sure how it chooses which folder content type if you have multiple though.
Thanks
Really very helpfull articles
Can you add web part list view of a list from antler site? If so haw?