Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-textfitter

StipJey4MIT1.0.0

Simple fit text

react, text, fit, fitter, textfit, textfitter

readme

react-textfitter

Work only with single line

Installation

npm install react-textfitter --save

Usage

import { Textfit } from 'react-textfitter';

class App extends Component {
  render() {
    return (
      <Textfit
        maxFontSize={60},
        width={100},
      >
        any text
      </Textfit>
    );
  }
}

License

MIT