Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

jxnblk/react-fitter-happier-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •