Hi. I have created a button component in React with Kotlin/JS. I let its properties implement the ButtonHTMLAttributes interface. I was wondering, is there a way to could I pass all properties belonging to the ButtonHTMLAttributes interface to an internal button HTML element? Below is the component I created, and currently I manually set some properties.
Essentially, I am wondering what the Kotlin approach would be (if it exists) to achieve what is done in this SO answer in JS:
https://stackoverflow.com/a/62568833