# Typewriter

> Text typed with a human rhythm, mistakes included.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Text Animations › Entrances |
| Live preview | https://uibrik.com/components/typewriter |
| Writes | 1 file into `components/uibrik/typewriter/` |
| Packages | `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/typewriter.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/typewriter`.

Can't run commands? https://uibrik.com/components/typewriter/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

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

<Typewriter
  play={0}
  text="Typing with a human hand"
  keyDelay={35}
  keyJitter={70}
  spacePause={90}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/typewriter.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `text` | `string` | `"Typing with a human hand"` | The copy to type. The scripted typo only plays for the default sentence. |
| `keyDelay` | `number` | `35` | Shortest gap between keystrokes. |
| `keyJitter` | `number` | `70` | Random extra per keystroke. |
| `spacePause` | `number` | `90` | Extra pause after a space. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `play` (required) | `number` |  | Each change plays the effect again; 0 shows its resting state. |

## Where it fits

- **Typing headlines**: Text typed with a human rhythm, mistakes included, feels authentic.
- **AI product intros**: Typing suggests a model writing an answer. Pairs with [Streaming Chat](https://uibrik.com/components/streaming-chat.md) (Pro).
- **Code-themed sites**: A typed line fits terminal and developer branding. Pairs with [Terminal Demo](https://uibrik.com/components/terminal-demo.md) (Pro).

## Same shelf: Entrances

- [Blur Reveal](https://uibrik.com/components/blur-reveal.md): Letters sharpen out of a blur, one after another.
- [Domino Letters](https://uibrik.com/components/domino-letters.md) (Pro): Letters topple one into the next like dominoes.
- [Fade In Left to Right](https://uibrik.com/components/fade-left-to-right.md): A soft-edged mask reveals the text from left to right.
- [Falling Letters](https://uibrik.com/components/falling-letters.md): Letters drop in and settle with a small bounce.
- [Highlighter](https://uibrik.com/components/highlighter.md): A marker stroke sweeps across a key phrase.
- [Line-by-line Rise](https://uibrik.com/components/line-rise.md): Each wrapped line rises into place in turn.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/typewriter/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
