Collapsible and Expandible section in Modern Page Sharepoint online

Occasional Contributor

Our users has long pages of information with different topic similiar to FAQ's with table sections. It's not user friendly to scroll down to the topic. I want to create collapsible/expandible section to modern page in sharepoint site. Please help me or share your suggestion. 

2 Replies



Collapsible sections on SharePoint modern pages are coming soon. Currently it is in development phase. You can track it's progress at: Microsoft 365 Roadmap 


I will suggest you to wait for this feature to get released (as this will be out of the box solution). But, in the mean time if you want to get started with SPFx web part then have a look at below SPFx sample:

Using React Accordion plugin with SPFx  


You can download the code from this GitHub repo and use it as it is if this satisfies your requirements or you can enhance it after downloading as per your requirements.

Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

@ganeshsanap Thank you so much. I will try it.