1.1.0 • Published 3 years ago

@icarolavrador/react-typewriter v1.1.0

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

react-typewriter

NPM JavaScript Style Guide

Description

The simplest typewriter effect component in React.

npm.io

Install

npm install --save @icarolavrador/react-typewriter

Usage

import React from 'react'

import Typewriter from 'react-typewriter'
import 'react-typewriter/dist/index.css'

const App = () => {
  const textArrayExample = [
    'small',
    'medium, this is a medium size text example',
    'long text, this is a long text to server as an example how long text work!'
  ]
  return <Typewriter textArray={textArrayExample} />
}

export default App

SASS variables to override

$typewriter-color-text: #525f7f;
$typewriter-color-underline: #d50000;
$typewriter-text-size: 1.25rem;

Sample page

https://icaronz.github.io/react-typewriter/

License

MIT © icaroNZ