grbtec / gbt-fluent2-web

Implementação do Fluent Design usando Tailwind, Radix e React.
https://app-gbt-fluent2-web.azurewebsites.net
0 stars 0 forks source link

Button #3

Open Willienn opened 7 months ago

Willienn commented 7 months ago

Button

A button triggers an action or event when activated.

Tasks:

Willienn commented 6 months ago

Not doing "as prop" for now

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.

Extra notes

Just for clarification, while it "works" it broken the typescript entirely.

References:

https://stackoverflow.com/a/77176708/19266672 https://www.robinwieruch.de/react-as-prop/ https://www.christianvm.dev/blog/react-as-prop