by gianu

React Plugin to fit text on the screen

203 Stars 43 Forks Last release: Not found MIT License 64 Commits 2 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

React Fit text

This component is a port of the famous fit text plugin for jQuery to use with React.

This component is 100% jQuery Free.



Simply wrap your text component inside

// In your React component

var ReactFitText = require('react-fittext'); ...

Testing React Fittext

and you're good to go!

If you want to see a live demo of this component, you can check the homepage.


There are few options you can send to the component to modify it default behaviour:

  • compressor: you can tweak this variable to increase / decrease the font-size. Default is 1.
  • minFontSize: the minimun font size (in px) this component should use.
  • maxFontSize: the maximum font size (in px) this component should use.

Issues / PR

If you found any issue with this component, please report it.

If you want to improve the code, feel free to create a PR!


We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.