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
  • Hi @Emiel, Does this answers your question? If Yes, Please Upvote(^) and accept as an Answer as it helped you and it will remove this question from unanswered questions list. Commented Aug 12, 2020 at 3:53

'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 you have read our privacy policy.

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