Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-lorem-component

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-lorem-component - npm Package Compare versions

Comparing version 0.10.1 to 0.11.0

2

index.js

@@ -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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc