TerminalText

Typewriter/terminal text animation effect. Renders text character by character with configurable speed, optional prefix, and blinking cursor.

Basic Usage

Preview
>

With Prefix

Preview
$

Props

PropTypeDefaultDescription
textstring-Text content to animate with the typewriter effect.
speednumber50Typing speed in milliseconds per character.
prefixstring-Prefix shown before the animated text (e.g. "$ ").
cursorbooleantrueShow a blinking cursor at the end of the text.
classNamestring-Additional CSS classes.

Accessibility

  • The full text is available immediately via aria-label so screen readers do not need to wait for the animation
  • The blinking cursor is decorative and hidden from assistive technology with aria-hidden
  • Uses aria-live="polite" to announce text content updates without interrupting the user
  • Respects prefers-reduced-motion by showing text immediately when the user prefers reduced motion