Earlier quoted context omitted.
Inline on the component itself. Then reach for the button component when you need to make a button.
So your component still has 60 tailwind classes on it? I think that might work in React, but might have a payload impact on server-rendered React. Another interesting point for using something like this (specifically, using shorter semantic class names instead of multiple tailwind classes) is: Phoenix LiveView LiveView streams DOM changes over the websocket, so afaik can't really meaningfully be compressed to elimina…
Yes, and this is better I think, because you still have only one button. So you just reuse the component.
But if you make a .button class, now people are going to be tempted to use that to style their own buttons. And now, you have a dozen buttons and your app breaks in tiny little ways and your codebase is a hot mess.