Is it possible to use string interp for width in tailwind

is it possible to use $w-[${x.width}px] in tailwind?
3 Replies
AdmiralGeneralAladeen
doesn't seem to be working on my end, despite showing up with the correct x.width value in the dev tools so im guessing it can't work
Neto
Neto2y ago
it doesnt work tailwind need to have access to the static content of css to generate the classes if x.width is predetermined values, you can "stub" the values and get the result
AdmiralGeneralAladeen
thought so, thanks for the help
Want results from more Discord servers?
Add your server