Componentmedia0.49 KB gzipZero dependencies

TypingIndicator

Three bouncing dots with user name label indicating who is typing.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add typing-indicator

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { TypingIndicator } from "@/components/ui/typing-indicator"; <TypingIndicator />

Source code

typing-indicator.tsx + 1 helper

Zero 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 />
PropTypeDescription
labelstringAccessible label text rendered or attached to the control. (Default: "Typing...")
showLabelbooleanToggles show label. (Default: false)