I would like to add a custom button on the default Document Library Ribbon. You know, like next to 'new','share','automate','myCostumBtn'

Any of you guys a good suggestion?

2 Answers 2


As you are using SharePoint Online, I will suggest you to create a ListView Command Set for your document library using SPFx extensions.

Check below official documentations for same:

  1. Overview of SharePoint Framework Extensions
  2. Build your first ListView Command Set extension

'CommandUI.Ribbon' user custom action is still supported in SP online. Please take a reference of below doc to get started:

enter image description here

Of course SPFx extension is also a good option.


Your Answer

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

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