1.0.7 • Published 7 months ago

react-awesome-typewriter v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

Installation

For npm

npm i react-ts-typewriter

For yarn

yarn add react-ts-typewriter

Example usage

/* Custom Classes for demo purposes only */
.text-secondary {
  color: #535bf2;
}

.text-primary {
  color: #f2a154;
}

.text-big {
  font-size: 3rem;
}

.text-small {
  font-size: 1.5rem;
}
import ReactAwesomeTypewriter from "react-awesome-typewriter";

const OPTIONS = [
  [
    { text: "Primary Text ", classNames: "text-primary text-big" },
    { text: "Secondary Text ", classNames: "text-secondary text-big" },
    { text: "Normal Text ", classNames: "text-big" },
  ],
  [
    { text: "Big Text ", classNames: "text-big" },
    { text: "Small Text", classNames: "text-small" },
  ],
];

export default function Main() {
  return (
    <h1>
      <ReactAwesomeTypewriter options={OPTIONS} />
    </h1>
  );
}

Props

FAQ

1. Changing property of one react-awesome-typewriter changes properties for all

You can simply make use of multiple typeWriterId for multiple instances of react-awesome-typewriter component to effectively solve this.

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago