Panel Buttons for Adding or Removing Panel Options

I would like to know how can we add buttons for the addition and removal of panel options from within the panel, similar to how it is implemented in the following screenshot (which is taken from the Graph plugin created by Grafana Labs),


Inspecting the source code of the above screenshot revealed a plugin written in the Angular which I believe is the legacy implementation of plugins since the migration to React.

Thank you!