If building a button component is the goal then create an interface and extend the htmlbutton element interface which will give you more type safe attributes for your button, still we need to implement tailwind-merge to merge the classnames
It’s important to also use something like tailwind-merge due to ordering specificity when passing in classes like this.
Oh my, even I've never changed the styles of components just for one instance. And I've been known to be a very big noob
Put classname as className="" as default param otherwise it would be undefined in the classname, which won't ruin the component but just ugly.
Only Juniors use Tailwind. Inline styles were a known anti-pattern since the 90's.
What theme do you use ?
or use clsx
@3mroos4