Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stolinski/react-vertical-rhythm-overlay


https://github.com/stolinski/react-vertical-rhythm-overlay

Last synced: 27 days ago
JSON representation

Awesome Lists containing this project

README

        

# 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 (



{/* yada yada yada */}

);
}
...
```

## 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](http://leveluptutorials.com/) - [Youtube Channel](https://www.youtube.com/user/LevelUpTuts/)

![Example Screenshot](/img/screen.png)