@3mroos4

Tip if you're using tailwindcss, there is a cool library called tailwind-merge and it combines the classNames, so you can wrap the final classNames with it.

@marimuthuraja6553

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

@playfulcyanide

It’s important to also use something like tailwind-merge due to ordering specificity when passing in classes like this.

@hikari1690

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

@cptpackage

Put classname as className="" as default param otherwise it would be undefined in the classname, which won't ruin the component but just ugly.

@Nellak2011

Only Juniors use Tailwind. 
Inline styles were a known anti-pattern since the 90's.

@happydev512

What theme do you use ?

@jydnmndz

or use clsx