react-textfitter

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i react-textfitter

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

29.8 kB

Total Files

7

Last publish

Collaborators

  • stipjey