How do I add custom buttons(CommandBarItems) on CommandBar in Modern View of SharePoint Online

3 Answers 3


Create a SharePoint Framework Extention.

More info here: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/overview-extensions


Please check out the below given links for help:.

Add a button to Command Bar of a SharePoint online

Add CustomAction button in Ribbon of DocumentLibrary in SharePoint Online


Do you want to add buttons in red part: enter image description here

Refer to: Build your first ListView Command Set Extension

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.