SharePoint Online Modern List and Document Library Web Part

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.

SharePoint Online modern list web part
SharePoint online modern site add list view web part

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”.

sharepoint online list view web part
SharePoint online list view web part

Step-3:-

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

add list view web part sharepoint online modern page
add list view web part sharepoint online modern page

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
add list view web part sharepoint online
add list view web part sharepoint online

Step-5:-

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

list view web part sharepoint online
list view web part SharePoint online

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.

SharePoint Online modern document library web part
Document Library web part in SharePoint

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

Document Library web part in SharePoint online modern page
Document Library web part in SharePoint online modern page

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

Document Library web part in SharePoint online modern page
Document Library web part in SharePoint online modern page

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

Document Library web part in modern page in SharePoint online
Document Library web part in a modern page in SharePoint online

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

Document Library web part in modern page in SharePoint
Document Library web part in a modern page in SharePoint

If you are new to SharePoint Online modern experience, then you can read below SharePoint Online modern UI tutorials:

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.

  • 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

  • >