|
|
|
|
|
by jbergens
1652 days ago
|
|
If you a 100 different types of buttons I can see your problem, if it is more like 5 then you just create them first and then makes the code more DRY. For example when using React you can create 5 button components first and the refactor your code to make the 5 buttons use/call a generic button. Or have 2 generic buttons if the combinations are hard to handle. The thing with atomic CSS like Tailwind is that it very easy to quickly create a few different buttons. |
|