How to create a dialog box on click of a Web Item in Confluence?


I am new to developing plugins in Confluence.
I have created a Plugin which is adding a Web-item “AAD Permissions” under Space permissions section of Confluence (attaching the screenshot for reference).
Now, on click of that Web item I need to open a dialog box with an input. Can anyone please guide me on how to achieve this?

Thanks & Regards,
Preethi H R