1.0.5 • Published 8 years ago

react-vertical-rhythm-overlay v1.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

React Vertical Rhythm Overlay

Install

npm install --save react-vertical-rhythm-overlay

Usage

Specify a fontSize & lineHeight to have a vertical rhythm grid displayed. This component is positioned absolutely, so place it somewhere relative to the document.

import VerticalRhythm from 'react-vertical-rhythm-overlay';
...
...
    render() {
        return (
            <div>
                <VerticalRhythm fontSize="1.2rem" lineHeight="1.5"/>
                {/* yada yada yada */}
            </div>
        );
    }
...

Props

fontSize

Should be any type of font unit with unit declared. (1.2em, 1.2rem, 16px... and so on).

lineHeight

Should be any unitless, relative measure of line height. (1, 1.5, 1.234234234234... and so on).

Sponsored By

Level Up Tuts - Youtube Channel

Example Screenshot

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago