Account

Typography

Creative

Typewriter Text

The classic typewriter with a blinking cursor, cycling phrases. For hero lines that name audiences or uses.

Install

Included with Creative: needs your API key. Initialize and log in once.

Terminal
npx @galactrex/ui add typewriter-text

Usage

Example
import { TypewriterText } from "@/components/galactrex/typewriter-text";

Built for <TypewriterText text={["designers", "studios", "teams"]} />

Source

Installs to components/galactrex/typewriter-text.tsx, with the shared motion primitives beside it.

Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.

See plans

Props

PropTypeDefaultDescription
textstring | string[]—Phrase or phrases.
asElementType"span"Element.
speed / deleteSpeednumber18 / 40Characters per second.
holdnumber1400Ms a phrase stays.
loopbooleantrueKeep cycling.
cursor"bar" | "block" | "underscore" | "none""bar"Cursor.
classNamestring—Extra classes for the outer element.

Variants

  • Cycling. A list of phrases with loop.

Accessibility

  • Every phrase is read once; keystrokes are visual.

Motion and reduced motion

  • Text writes only.
  • Reduced motion: the first phrase, no cursor.