Installation
Usage
import { Typing } from "@/components/loading-ui/typing";<Typing />Customization
Typing animates translateY with a short period so each dot feels like it is tapping upward in sequence. Color flows through bg-current and inherited foreground. Cycle length is driven by --duration (default 1s); delay steps stay at 160ms per index.
Size
Widen the container for calmer motion; keep rows tight next to baseline text.
Color
Vivid hex swatches for documentation clarity.
Duration
Faster reads as rapid typing; slower feels more relaxed or “thinking.”
Dot count
Match the density of your message chrome—three is the usual chat default.
Examples
Bias examples toward text and presence: disabled buttons that mirror chat copy, accordion headers for collaborators, command inputs, and tooltips that explain live editors.
Button
Disabled state sells “read-only until idle” without swapping components.
Badge
Great for omnibar, doc header, or thread list chips.
Accordion
Stack typing motion with a participant list in the panel body.
- Jamie — product brief
- Avery — legal review
Input group
Leading addon slot mirrors command palettes and search-as-you-type rows.
Tooltip
Contrast the dots against the tooltip surface with text-background when needed.