1.0.13 • Published 8 years ago

react-lorem v1.0.13

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

React Lorem component

A react component that renders lorem ipsum text.

Demo

<div>
    <Lorem />
    <Lorem reps={{ times: 4, lineBreak: true }} color={'yellow'} fontSize={'medium'} />
    <Lorem color={'blue'} fontSize={30} />
    <Lorem color={'rgb(154,67,123)'} fontSize={'large'} />
</div>

results to...

https://gyazo.com/3a4a40b15c50f0f079fe701bb2a301c7

Installation

https://nodei.co/npm/react-lorem.png?downloads=true&downloadRank=true&stars=true NPM

Properties

PropertyDescriptionTypeRequired
repsamount of repetitionsshapeNO
colortext colorstringNO
fontSizefont sizestring/numberNO

Usage

import React from 'react';
import Lorem from 'react-lorem/Lorem.jsx';

render(
  <div>
    <Lorem />
    <Lorem reps={{ times: 4, lineBreak: true }} color={'#FFAADD'} fontSize={'small'} />
    <Lorem color={'blue'} fontSize={30} />
    <Lorem color={'rgb(154,67,123)'} fontSize={'large'} />
  </div>,
  document.getElementById('root')
);

Example

npm install
npm start
Open http://localhost:4000

Linting

ESLint with React linting options have been enabled.

npm run lint

Credits

Big thanks to react-es6-webpack-boilerplate, which provided the base of this project and of course gave me the chance to have a very first viewing on the latest front-end configurations.

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

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