All components
Chewypixel component

Typing Indicator

Three dots that bob in turn while someone is typing.

S

Sally is typing…

Installation

npx shadcn@latest add @chewypixel/typing-indicator

Usage

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

export function Typing() {
  return (
    <span className="bg-muted text-muted-foreground flex h-9 w-fit items-center rounded-2xl px-4">
      <TypingIndicator label="Sally is typing" />
    </span>
  );
}

Props

label

What screen readers announce. The dots take the text color.

string = "Typing"

Released under the MIT License.

More components

See them in a real app

These components come from Bubblegum, our messenger template built with Next.js, shadcn/ui and Motion.