Feb 19 2021 09:46 AM
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.
Feb 19 2021 08:25 PM
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.
Feb 22 2021 06:35 AM
@ganeshsanap Thank you so much. I will try it.
Jul 01 2021 05:25 AM
Finally, collapsible/expandable section will be released to modern pages in SharePoint online this month.
You can find short overview & release timeline of this feature at: SharePoint: Collapsible sections on modern pages
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.