react-lorem-component
Advanced tools
Comparing version 0.10.1 to 0.11.0
@@ -14,2 +14,3 @@ 'use strict'; | ||
mode: 'paragraphs', | ||
format: 'html', | ||
count: 5, | ||
@@ -24,3 +25,2 @@ seed: 0, | ||
units: 'paragraphs', | ||
format: 'html', | ||
random: random | ||
@@ -27,0 +27,0 @@ }); |
{ | ||
"name": "react-lorem-component", | ||
"version": "0.10.1", | ||
"version": "0.11.0", | ||
"description": "A component for React that renders paragraph or list item tags full of lorem ipsum placeholder text", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -42,6 +42,6 @@ # React Lorem Component | ||
Prop | Default | Description | ||
Prop | Default | Description | ||
------------------- |:------------------:| ------------ | ||
mode | "paragraphs" | if set to `"list"`, instead of `<p>` tags wrapped in a `<div>` it renders `<li>`s wrapped in an `<ul>` | ||
ordered | false | if `mode` is set to `"list"` and this prop has a truthy value, the list items are wrapped in an `<ol>` tag | ||
mode | 'paragraphs' | if set to `'list'`, instead of `<p>` tags wrapped in a `<div>` it renders `<li>`s wrapped in an `<ul>` | ||
ordered | false | if `mode` is set to `'list'` and this prop has a truthy value, the list items are wrapped in an `<ol>` tag | ||
seed | 0 | the seed of the random number generator used for generating lorem text; changing this to a different natural number generates a different text | ||
@@ -53,5 +53,6 @@ count | 5 | number of paragraphs to generate | ||
paragraphUpperBound | 7 | maximum sentences per paragraph | ||
format | 'html' | plain text or html | ||
words | ['ad','dolor',...] | custom word dictionary | ||
The last six properties are send directly to the [lorem-ipsum][3] node module which is used internally to generate the lorem text. | ||
The last seven properties are send directly to the [lorem-ipsum][3] node module which is used internally to generate the lorem text. | ||
@@ -58,0 +59,0 @@ Other properties you pass (eg. `className`) are transferred to the wrapping tag. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6073
74