Welcome
A modern, performant React hook for creating typewriter animation effects with full TypeScript support, accessibility features, and React 19 compatibility.
β¨ Why Choose use-typewriter-animation?β
- π― Modern React: Built for React 16.8+ with full React 19 support
- π§ TypeScript First: Complete type safety and IntelliSense
- βΏ Accessibility: WCAG 2.1 AA compliant with screen reader support
- π Performance: Optimized with virtualization (~5KB bundle)
- π¨ Flexible: Rich styling and animation control
- π± Responsive: Mobile-friendly with touch support
Quick Exampleβ
import { useEffect } from 'react';
import { useTypewriter } from 'use-typewriter-animation';
function Demo() {
const { typewriter, elements, cursor, keyframes } = useTypewriter();
useEffect(() => {
typewriter.type('Hello, World!').pauseFor(1000).deleteLetters(9).type('React!').start();
}, []);
return (
<>
<style>{keyframes}</style>
<div style={{ fontSize: '1.5rem', fontFamily: 'monospace' }}>
{elements}
{cursor}
</div>
</>
);
}
What's Next?β
- π Installation Guide - Set up the library
- π Quick Start - Build your first animation
- π― Examples - See live examples in action
- π API Reference - Explore all features
- π€ Contributing - Help improve the library
- πΊοΈ Roadmap - See what's planned