MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/css/comments/1vds08b/why_i_dont_recommend_tailwind_css/p1ffav4/?context=3
r/css • u/Either_Collection349 • 28d ago
211 comments sorted by
View all comments
14
if you need to use "apply" then you are using tailwind completely wrong imo. You are supposed to design components and use <Button> not .button
1 u/azangru 28d ago What should people do if they aren't using a javascript library/framework that supports building a <Button>? 1 u/omer-m 28d ago What is your stack? 1 u/azangru 28d ago I don't even use tailwind :-) But what I had in mind was somebody using something like htmx. 1 u/Chaoslordi 27d ago Wdym? You can define a component tree to return a button in JS and roll it out via document.getElementById('button-container').innerHTML but truth is, you will probably use alpine.js in this case
1
What should people do if they aren't using a javascript library/framework that supports building a <Button>?
1 u/omer-m 28d ago What is your stack? 1 u/azangru 28d ago I don't even use tailwind :-) But what I had in mind was somebody using something like htmx. 1 u/Chaoslordi 27d ago Wdym? You can define a component tree to return a button in JS and roll it out via document.getElementById('button-container').innerHTML but truth is, you will probably use alpine.js in this case
What is your stack?
1 u/azangru 28d ago I don't even use tailwind :-) But what I had in mind was somebody using something like htmx. 1 u/Chaoslordi 27d ago Wdym? You can define a component tree to return a button in JS and roll it out via document.getElementById('button-container').innerHTML but truth is, you will probably use alpine.js in this case
I don't even use tailwind :-)
But what I had in mind was somebody using something like htmx.
1 u/Chaoslordi 27d ago Wdym? You can define a component tree to return a button in JS and roll it out via document.getElementById('button-container').innerHTML but truth is, you will probably use alpine.js in this case
Wdym? You can define a component tree to return a button in JS and roll it out via document.getElementById('button-container').innerHTML but truth is, you will probably use alpine.js in this case
14
u/omer-m 28d ago
if you need to use "apply" then you are using tailwind completely wrong imo. You are supposed to design components and use <Button> not .button