Skip to content

How can I make the stat daisy UI component responsive? #2753

Closed Answered by saadeghi
MariusWilsch asked this question in Q&A
Discussion options

You must be logged in to vote

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 to stat-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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by saadeghi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants