Open Willienn opened 7 months ago
Adding "as prop" is relatively simple when the component isn't a forwardRef component. I haven't yet found a way to do this, but I'm still looking.
Just for clarification, while it "works" it broken the typescript entirely.
https://stackoverflow.com/a/77176708/19266672 https://www.robinwieruch.de/react-as-prop/ https://www.christianvm.dev/blog/react-as-prop
Button
A button triggers an action or event when activated.
Tasks:
- [ ]as:"button"
|"a"