You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

typed-textfield

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typed-textfield

This is a react library with a component that simulates typing

0.0.16
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Typed Textfield

This is a simple and customizable react component that simulates typing

Installation

To add this library to your project, run the following command:

npm i typed-textfield

Usage

In order to use this component, simply import it as shown below:

import { TypedText } from 'typed-texfield'

Now, you can use it inside your react component:

function MyComponent(props) {
  return (
    <div>
      <TypedText
        sentences={['Hello world, I am working', 'I am also working with a new sentence!']}
        style={{ fontFamily: 'monospace' }}
      />
    </div>
  )
}

Properties

sentences: string[] - an array of strings representing the sentences that will interchangably be typed onto the screen.

style?: CSSProperties - any style that you would like the text component to have.

loop?: boolean - whether the sentences should repeat after the final one is reached. Default is false.

typeTime?: number - the time in milliseconds it takes to type a new character. Default is 40.

waitTime?: number - the time in milliseconds waited before a deletion of a sentence begins. Default is 1200.

deleteTiime?: number - the time in milliseconds necessary to delete a single character. Default is 8.

Keywords

react

FAQs

Package last updated on 25 Jul 2023

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