bitspook / react-fitter-happier-text

React component for fully fluid headings

Home Page:http://jxnblk.com/react-fitter-happier-text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-fitter-happier-text

React component for fully fluid headings

Note: Requires react >= 0.14.0

Demo

http://jxnblk.com/react-fitter-happier-text

Usage

npm i react-fitter-happier-text
var React = require('react')
var FitterHappierText = require('react-fitter-happier-text')

React.render(<FitterHappierText text='Hello World' />, document.querySelector('#hello-world'))

Note: this component relies on element.offsetWidth and only works in client-side contexts.

Related

http://jxnblk.com/fitter-happier-text

MIT License

About

React component for fully fluid headings

http://jxnblk.com/react-fitter-happier-text


Languages

Language:JavaScript 81.2%Language:CSS 12.3%Language:HTML 6.4%