So I have a handful of Document Libraries on a SharePoint online modern page. I currently render them with the Document Library Web Part that is provided out of the box by SharePoint.

Now the customers requirement is to dynamically show/hide those Web Parts dynamically based on entries in some other List.

I assumed the most robust solution would be to create a custom Web Part to render to fetch the List and render the document libraries with SPFx, but I can't for the Live of me find out anything about the out-of-the-box Document Library web part.

No documentation, no source code, what library it is using, nothing. And rebuilding it from scratch just cant be the correct answer, why rebuild something that's already there.

1 Answer 1


Please see if the answers in this thread are helpful to you.

SharePoint Framework: how to display document library data in a SPFx client side web part using ReactJs and Type Script

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.