Browse components

component

Typing Indicator

Three bouncing dots that stop bouncing when the reader asked for less motion.

Install

npx shadcn@latest add https://whatsapp-components.crafter.run/r/typing-indicator.json

Writes 4 files into your project, and installs clsx and tailwind-merge.

Preview

Sin globo:
demos/typing-indicator.tsx
import { MessageBubble } from "@/registry/whatsapp/message-bubble";
import { TypingIndicator } from "@/registry/whatsapp/typing-indicator";

export default function Demo() {
  return (
    <div className="flex flex-col gap-3">
      <MessageBubble direction="in">
        <TypingIndicator />
      </MessageBubble>
      <span className="text-[13px] text-wa-text-muted">
        Sin globo: <TypingIndicator />
      </span>
    </div>
  );
}

Props

Read from TypingIndicatorProps in the component source at build time.

TypingIndicatorProps
PropTypeDefault
classNamestring—
labelstring"Typing"

Files

  • registry/whatsapp/typing-indicator.tsx
  • registry/whatsapp/cn.ts
  • registry/whatsapp/whatsapp.css
  • LICENSE