Typing Dots

The chat 'someone is typing' indicator: three dots hopping in a bubble.

no dependenciesMIT · free
Is the new release out?

Installation

npx shadcn@latest add https://ombakui.com/r/typing-dots.json

Usage

import { TypingDots } from "@/components/typing-dots";

{isTyping && <TypingDots label="Dewi is typing" />}

Props

PropTypeDefaultDescription
colorstringyour theme's muted-foreground colorDot color.
sizenumber7Dot size in px.
bubblebooleantrueShow the chat bubble behind the dots.
labelstring"Typing"Text for screen readers.
classNamestring–