# Typing Dots

> A typing indicator whose bubble grows from three dots into the message itself, so the reply lands where the dots were.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Components › State Changes |
| Live preview | https://uibrik.com/components/typing-dots |
| Writes | 1 file into `components/uibrik/typing-dots/` |
| Packages | `motion`, `react-use-measure` (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 22, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/typing-dots.json
```

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

Can't run commands? https://uibrik.com/components/typing-dots/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 { TypingDots } from "@/components/uibrik/typing-dots/typing-dots";

const messages = ["Hey! Just landed.", "Grabbing a coffee,  then I'll head your way.", "Twenty minutes?"];

<TypingDots
  messages={messages}
  typingDuration={1.4}
  gap={0.5}
  loop
  holdDuration={2.4}
  maxWidth={260}
  radius={20}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/typing-dots.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `messages` | `string[]` | `["Hey! Just landed.","Grabbing a coffee, then I'll head your way.","Twenty minutes?"]` | Messages that arrive one after another. |
| `typingDuration` | `number` | `1.4` | How long the dots show before each message. |
| `gap` | `number` | `0.5` | Pause between one message and the next starting to type. |
| `loop` | `boolean` | `true` | Start over once every message has landed. |
| `holdDuration` | `number` | `2.4` | How long the finished thread stays before starting over. |
| `maxWidth` | `number` | `260` | Widest a bubble grows before its text wraps. |
| `radius` | `number` | `20` | Corner radius of the bubbles. |

## Wire it

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

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `className` | `string` |  | Classes for the thread. |

## Where it fits

- **Chat and messaging**: The dots become the message in place, so the thread never jumps when a reply arrives. Pairs with [Read Receipts](https://uibrik.com/components/read-receipts.md).
- **AI assistants**: A short typing beat before each answer makes a bot's replies feel paced rather than dumped. Pairs with [Streaming Chat](https://uibrik.com/components/streaming-chat.md) (Pro) and [Prompt Input](https://uibrik.com/components/prompt-input.md).
- **Onboarding conversations**: Messages that arrive one at a time walk a new user through setup at reading speed.

## Same shelf: State Changes

- [Disabled Reason](https://uibrik.com/components/disabled-reason.md): A disabled button that answers a press: it shakes, says why it's blocked, and moves focus to the field that needs fixing.
- [Download Button](https://uibrik.com/components/download-button.md): A download button whose arrow drops into its tray, fills with progress as the percentage counts up, then draws a check and offers Open.
- [Follow Button](https://uibrik.com/components/follow-button.md): A follow button whose plus folds into a check as it turns to Following, and warns with Unfollow on hover before you undo it.
- [Live Kbd](https://uibrik.com/components/live-kbd.md): Shortcut keycaps that sink as you press the real keys, then fire the action, so people learn the shortcut by using it.
- [Mute Toggle](https://uibrik.com/components/mute-toggle.md): A sound toggle whose waves fold away one at a time before a slash cuts through the speaker, and come back in reverse.
- [Notification Bell](https://uibrik.com/components/notification-bell.md): A notification bell that swings when something new arrives, rolls its badge count up, and drops the badge into the bell once read.

## Ground rules

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