New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-typist-cycle

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-typist-cycle

A simple cycler for queuing react-typist elements

latest
npmnpm
Version
0.1.2
Version published
Weekly downloads
7
133.33%
Maintainers
1
Weekly downloads
 
Created
Source

React Typist Cycle

A React Component for 'cycling' through React-Typist elements.

Install

npm install react-typist-cycle

Example Usage

example of the element in use

<TypistCycle
  content={[
    'First typist *line*', 
    'Second line', 
    'Third line :)'
  ]}
  numberOfCycles={-1} // loop indefinitely
  segmentDelay={0.8} // stop for 0.8s at end line
  className="my-class"
/>

Options

Inherited

React Typist Cycle inherits all of React Typist's props, with the exception of onTypingDone (this is reserved for cycling).

New

React Typist Cycle comes with the following props...

content (REQUIRED)

An array of string objects representing each Typist element to display.

numberOfCycles

Default: 1

How many times to cycle through the values. A negative value will cause the component to cycle through its content infinitely. NOTE: At the end of the specified cycle amount, the component will load the first line again and remain there.

segmentDelay

Default: 0.44

The delay at the end of each line, in seconds.

Licence

MIT

Keywords

react-typist

FAQs

Package last updated on 30 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts