Typing Indicator

Chat typing indicator with three dots that brighten in turn. When the reply arrives, the bubble grows to fit it and the words appear in reading order.

Preview

Installation

npx @lumioui/cli add typing-indicator

Usage

import { TypingIndicator } from "@/components/ui/typing-indicator/typing-indicator";
<TypingIndicator />

Examples

In a thread

A DM about a weekend climb.

API reference

Prop Type Default
visible boolean

Show the dots. Switches on / dims out rather than hard-mounting. Default true.

true
bubble boolean

Wrap the dots in a received-message bubble surface. Default false.

false
dotSize number

Dot diameter in px. Default 8.

8
speed number

Multiplier on the ~1.2s light sweep. Default 1.

1
color "primary" | "foreground" | "mutedForeground"

Dot color token. Default "mutedForeground".

"mutedForeground"
message string

The reply that ends the typing — the bubble grows into it, words igniting in order.

—
maxWidth number

Widest the reply text may wrap at, in pt. Default 260.

260
onRevealed () => void

Fires once the last word of message has ignited.

—
accessibilityLabel string

Screen-reader announcement while typing. Default "Typing…".

"Typing…"
className string —