Animations
Typewriter
Animated typing effect that cycles through an array of words.
Quick Preview
We build |
Installation
# No extra dependencies
// Copy component fromsrc/components/animations/Typewriter.tsx
Usage
import Typewriter from '@/components/animations/Typewriter'<Typewriterwords={['developers', 'designers', 'makers']}typingSpeed={80}deletingSpeed={40}pauseMs={2000}className="text-primary"/>
Examples
Terminal Style
$ _
Slow Dramatic
|
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
words* | string[] | - | Words to cycle through |
typingSpeed | number | 80 | ms per character typed |
deletingSpeed | number | 40 | ms per character deleted |
pauseMs | number | 1800 | Pause after full word is typed |
cursor | string | '|' | Cursor character |
className | string | - | Additional CSS classes |