How can I make the stat daisy UI component responsive? #2753
-
If I reduce the window size the size of the text stays the same. I've tried using the tailwind responsive prefixes but that didn't work either. Does anybody have an idea? Thank you! Here's a tailwind play link where you can see the html in action https://play.tailwindcss.com/XxT7YhHT1s
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can set the font size the same way you do in Tailwind CSS. Your code updated: https://play.tailwindcss.com/8C15mbG3JU Let me know if you have a question. |
Beta Was this translation helpful? Give feedback.
You can set the font size the same way you do in Tailwind CSS.
For example, you can add
text-sm md:text-2xl lg:text-4xl
tostat-value
to set custom font sizes for each screen size.Your code updated: https://play.tailwindcss.com/8C15mbG3JU
Let me know if you have a question.