malte-wessel / react-textfit

React component to fit headlines and paragraphs into elements
http://malte-wessel.github.io/react-textfit/
MIT License
467 stars 143 forks source link

REM units for max/min values? #45

Open jnazander opened 5 years ago

jnazander commented 5 years ago

Right now it only supports absolute pixels for max/min values. But this is problematic, as my webapp (and most modern webapps) set all sizes in REM units, which makes websites responsive to different display sizes. Having to set absolute pixels for this component only makes the text go out of proportions with the rest of the webapp.

Is it possible to allow setting min/max values in rem units?

reidgarner commented 3 years ago

Same Issue. This would be super helpful.