Use the Document Library web part

When you add a modern page to a site, you can add and customize web parts, which are the building blocks of your page. This article describes the Document Library web part, which allows you to display a document library and customize it with your own title, view, and even size. Users with appropriate permissions can view or edit files directly from the web part, or can go the full document library by clicking See all.

Note: Some functionality is introduced gradually to organizations that have opted in to the First Release program. This means that you may not yet see this feature or it may look different than what is described in the help articles.

Document Library web part on a modern page.

Add a document library to a page

  1. If you want a custom view of your library to appear on your page, create the view.

  2. Go to the page where you want to add the library.

  3. If your page is not already in edit mode, click Edit at the top right of the page.

    Hover your mouse above or below an existing web part and you'll see a line with a circled +, like this:

    Plus sign for adding web parts to a page

  4. Click +, and then select Document Library from the list of web parts.

  5. Select the document library you want to put on your page.

    Select a document library to put on a page

  6. Click Edit web part Web part edit button on the left side to change the Title, the Document library, the View of your library, and the size:

    Document library web part settings

Sort, filter, or group items within the document library web part

In the web part, users can sort, filter, and group items. The actions taken in the web part do not affect the underlying library, and are viewable for the current session only.

  1. Click the down arrow next to the title of the column you want to sort, filter, or group.

  2. Select the action you want to take.

    Document Library web part showing sort, filter, and group menu

Note: Coming soon is the ability to perform document library actions such as creating and uploading files from directly within the web part.

Expand your skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×