Skip to main content

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?​