InkUI
Components

Typewriter

Character-by-character text animation with configurable speed and delay.

Animate text as if it's being typed in real-time. Unlike StreamingText, this has intentional delay for dramatic or onboarding effect.

Live Preview
Typewriter · character animation
_
~/my-cli — node v22● running

Installation

npx inkui add typewriter

Usage

import { Typewriter } from './components/ui/typewriter';
 
export default function App() {
  return (
    <Typewriter
      text="Welcome to InkUI — a terminal UI component library."
      speed={40}
      onComplete={() => console.log('Done!')}
    />
  );
}

API Reference

PropTypeDefaultDescription
textstringFull text to type out (required)
speednumber30Characters per second
delaynumber0Delay before starting (ms)
cursorbooleantrueShow blinking cursor during typing
cursorCharstring'▌'Cursor character
onComplete() => voidCalled when typing completes
playingbooleantrueStart animation (false = show full text)
themeInkUIThemedarkThemeColor theme

On this page