How to adjust the font size based on the content (which is a number and string) in a container?

jmjjeena profile image J E E N A R J U N ・1 min read

I am having a container which takes in the amount and the currency. As the amount gets bigger and reaches near to the right padding (i.e., 16px), the font size should be reducing. At the same time the top padding of the currency should also change.


//////////////// REACT /////////////////


markdown guide