Componentmedia0.49 KB gzipZero dependencies
TypingIndicator
Three bouncing dots with user name label indicating who is typing.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add typing-indicatorOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { TypingIndicator } from "@/components/ui/typing-indicator"; <TypingIndicator />Source code
typing-indicator.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxtyping-indicator.tsx44 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface TypingIndicatorProps extends React.HTMLAttributes<HTMLDivElement> { label?: string; showLabel?: boolean;} export const TypingIndicator = React.forwardRef<HTMLDivElement, TypingIndicatorProps>( function TypingIndicator( { label = "Typing...", showLabel = false, className, ...props }, ref, ) { return ( <div ref={ref}Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { TypingIndicator } from "@/components/ui/typing-indicator"; <TypingIndicator />| Prop | Type | Description |
|---|---|---|
| label | string | Accessible label text rendered or attached to the control. (Default: "Typing...") |
| showLabel | boolean | Toggles show label. (Default: false) |