[v3] How do I use arbitrary value for text-align
?
#18346
Answered
by
wongjn
hashfiputra
asked this question in
Help
-
I read from here, you need to add CSS data type, I tried |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Jun 19, 2025
Replies: 1 comment
-
It won't work for
But for Also, just in case you may be trying to do this, you cannot use string interpolation/concatenation to build class names. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hashfiputra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It won't work for
text-align
since the classes are not "dynamic" utilities. You could use an arbitrary property class instead like:But for
left
, you should be able to usetext-left
.Also, just in case you may be trying to do this, you cannot use string interpolation/concatenation to build class names.