Narcissistic Pickle Meister

    sentences-typing

    0.1.1 • Public • Published

    Sentences typing

    Sentences typing is a small react component that types sentence after sentence.

    Demo

    Install

    npm install sentences-typing --save
     
    or
     
    yarn add sentences-typing

    Basic Usage

    import React, {Component} from 'react';
    import { Typing } from 'sentences-typing';
     
    const sentences = [
        'Lorem ipsum dolor sit amet',
        'consectetur adipiscing elit',
        'sed do eiusmod tempor incididunt'
    ];
     
    export default class MyComponent extends Component {
      render() {
        return (
          <Typing sentences={sentences}/>
        );
      }
    }

    Infinity mode

    import React, {Component} from 'react';
    import { Typing } from 'sentences-typing';
     
    const sentences = [
        'Lorem ipsum dolor sit amet',
        'consectetur adipiscing elit',
        'sed do eiusmod tempor incididunt'
    ];
     
    export default class MyComponent extends Component {
      render() {
        return (
          <Typing sentences={sentences} infinity/>
        );
      }
    }

    Props

    sentences

    Array of strings for typing.

    infinity

    Default: false

    When infinity mode is active component typing sentences in infinity loop (starting from the second sentence)

    Keywords

    none

    Install

    npm i sentences-typing

    DownloadsWeekly Downloads

    2

    Version

    0.1.1

    License

    none

    Unpacked Size

    8.4 kB

    Total Files

    4

    Last publish

    Collaborators

    • mcode_app