React-TypeMe
React-TypeMe is a typewriter animation simulator component built to be simple and powerful. It is built as a pure React functional component using React Hooks.
Features
- ✔️ Extremely lightweight (less than 2KB gzipped including styling).
- ✔️ Loop typing animation.
- ✔️ Add custom line breaks.
- ✔️ Simulate backspace character key.
- ✔️ Control typing and delete speeds.
- ✔️ Use custom cursor character.
- ✔️ Introduce artificial typing delays.
- ✔️ Control start of typing animation.
- ✔️ Built for React — No external dependencies.
Usage Examples
A simple string
|import TypeMe from 'react-typeme';
<TypeMe>Simple string passed as children</TypeMe>
With a line break
|import TypeMe, { LineBreak } from 'react-typeme';
<TypeMe
strings={[
'These strings are passed',
<LineBreak />,
'as an array via props'
]}
/>
With backspace
|import TypeMe, { Delete } from 'react-typeme';
<TypeMe
strings={[
'Hello there.',
'Can you please erase this sentence?',
<Delete characters={35} />,
'Thank you!'
]}
/>
With a custom delay
|import TypeMe, { Delay } from 'react-typeme';
<TypeMe
strings={[
'Hey, hold on a sec...',
<Delay ms={2000} />,
' Thank you for trying my delay feature!'
]}
/>
Installation
1. Install the npm package inside your project.$ npm install --save react-typeme
2. Import React-TypeMe into your bundle.import React from 'react';
import TypeMe from 'react-typeme';
<TypeMe>Simple string passed as children</TypeMe>
License
Use React-TypeMe in personal or open source projects 100% free of charge. To use it in commercial projects, thank you for purchasing a single or multi-project license right here.
Commercial
Single LicenseUSD 15Use React-TypeMe in a single commercial project. Includes lifetime updates.Buy Single License
Commercial
Unlimited LicenseUSD 45Use React-TypeMe in unlimited commercial projects. Includes lifetime updates.Buy Unlimited License