You might be interested in these PCFs
Button Control
A control to render a button (FluentUI) and to be able to call a JavaScript function.
Trigger JavaScript on Button Click
A control that renders a button with customizable label, icon, and on-click script execution

