![]()
The web part illustrates how to get all the web part present in the current page, bind them in a multi-select dropdown.
Open this sample in the gallery (popup panel): Open in gallery
Source: https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-webpartdetails