Is there any way to Open the Default Share Item dialog from the SPFx web part's details list (Modern dialog)?

enter image description here

My requirement is to open the default OOTB share item dialog (as displayed above) when someone clicks on the context item inside the Details list item.

1 Answer 1


The following link will give you the "Share with" dialog. You can put it in a Modal dialog of your preference:


Have fun! ps. I guess if you are working on SPFx you might choose this: https://github.com/pnp/sp-dev-fx-controls-react/tree/master/src/controls/iFrameDialog

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.