Three dots and a scrawl
The pencil writes the dots one after another, walks back and starts again. The second variant scrawls a line of cursive instead.
"Somebody is writing": a small pencil that draws three dots one after another, or scrawls a line of cursive. A polite live region with a screen-reader label, at home inside a bubble.
npx shadcn@latest add @wobko/typing-indicatorFirst time here? Add the registry to components.json first. How to install
The pencil writes the dots one after another, walks back and starts again. The second variant scrawls a line of cursive instead.
Put it in a BubbleContent and the bubble draws itself round it. Keep the region mounted and exposed (hide the bubble with sr-only, never display: none) and toggle `active`, so assistive tech announces it.
A message row with an avatar, a header and the indicator in blue felt for the person on the other end. The label names them for screen readers.
A `role="status"` region 56 x 24 px (80 x 24 for the scrawl) holding the drawing and a visually hidden label. Every CSS animation ends on the fully drawn frame, so reduced motion shows the dots, the line and the pencil at rest.
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "dots" | "squiggle" | "dots" | Three dots, or a line of cursive scrawl. |
| pen | "ink" | "you" | "ink" | `you` writes in blue felt. |
| pencil | boolean | true | Draw the pencil that does the writing. |
| active | boolean | true | False leaves an empty live region mounted, so a screen reader announces the label when it turns on. |
| label | string | "Typing" | What assistive technology announces. |
| seed | string | number | - | Pins the hand. |
The files the CLI copies into your project.
Loading the source