UI color picker and enable/disable switch in grafana .tsx file

How can I implement UI color picker and enable/disable switch in grafana .tsx file? Any sample code