# Typewriter

Types words letter by letter with a blinking caret, then deletes them and types the next. PlankUI component for React 19 and Tailwind CSS v4. Category: Display.

## Install

```bash
npx plankui@latest add typewriter
```

## Usage

```tsx
import { Typewriter } from "@/components/ui/typewriter";

<Typewriter words={["dashboard", "settings page", "sign-in flow"]} />
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| words | `string[]` | `required` | Typed one after another. |
| speed | `number` | `70` | Milliseconds per letter; deleting is twice as fast. |
| pause | `number` | `1600` | How long a finished word stays. |
| loop | `boolean` | `true` | Start again after the last word, or stop on it. |
| caret | `boolean` | `true` | Show the blinking caret. |
| onWordChange | `(index: number) => void` |  | Called when a new word starts. |

Source: https://github.com/VectorLabsHQ/plankui/blob/main/components/ui/typewriter.tsx
