react-fittext
react-fittext copied to clipboard
In a wide div with a short height the contents overflow the containing div unless a max font is specified
In a wide div with a short height the contents overflow the containing div unless a max font is specified. I'm not sure if this is by design, but I would have thought the container should constrain it.
look at this - https://github.com/kennethormandy/react-fittext (based on this library) they have a vertical fit text ability
I've created a library that solves this, that works with react 16+ and allows for resizing of components https://github.com/damiangreen/isomorphic-react-fittext