1.0.0 • Published 3 years ago

react-auto-typing v1.0.0

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

auto-typing-react

Auto typing animation's component

NPM JavaScript Style Guide

Install

npm install --save react-auto-typing

Usage

import React from 'react'

import AutoTyping, { BlinkCursor } from 'react-auto-typing'

export const myComponent = () => (
  <>
    <AutoTyping
      active // <boolean>
      textRef='Your string text' // <string>
      writeSpeed={150} // <number>
      deleteSpeed={150} // <number>
      delayToWrite={1000} // <number>
      delayToDelete={2000} // <number>
    />
    <BlinkCursor
      active // <boolean>
      blinkSpeed={500} // <number>
    />
  </>
)

Properties

If you don't put the properties, they will use default values.

AutoTyping

BlinkCursor

License

MIT © iZanfir