3.0.2 • Published 8 months ago

simple-typewriter-react v3.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Simple-TypeWriter-React

A simple and easy to use library for typewriter effect in react

DEMO

Demo TypeWriter

Install

npm

npm i simple-typewriter-react 

Yarn

yarn add simple-typewriter-react

Bun

bun add simple-typewriter-react

Usage

import React from 'react'
import SimpleTypeWriter from 'simple-typewriter-react'

const TestComponent = () => { 

    return (
        <div>
            <SimpleTypeWriter
                words={["Dream", "Believe", "Do", "Repeat"]} 
                loop={true} 
                typeSpeed={120}
                deleteSpeed={80}
                delay={1500}
                cursor={true}
                cursorStyle="|"
                styles={{fontWeight: "700", "...all other css styles"}} 
                fontSize="20px" 
                color="red" 
            />
        </ div>
    )
}

Component Props

PropTypeDescriptionDefault
wordsarrayString array holding words to show"Hello", "..."
typeSpeednumberTyping speed of individual characters80
deleteSpeednumberDelete speed of individual characters50
delaynumberDelay between words1500
loopboolControls if words should loop after finishingtrue
cursorboolControls if cursor is displayedtrye
cursorStylestringChange the cursor style if enabled"|"
3.0.2

8 months ago

3.0.1

8 months ago

3.0.0

8 months ago

1.1.3

8 months ago

1.1.2

8 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago