Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 545 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 545 Bytes

Powers of FlowType.js with a React component

What does it do?

See http://simplefocus.com/flowtype/.

Install latest version

npm install --save https://github.com/bond-agency/react-flowtype/tarball/v1.0.4

Usage

import React, { Component } from 'react'
import FlowType from 'react-flowtype'

export default class MyComponent extends Component {

  render () {
    return (
      <FlowType minimum={320} maximum={800} minFont={16} maxFont={40} fontRatio={35}>
        <h1>Hello World</h1>
      </FlowType>
    )
  }
}