Command Palette

Search for a command to run...

AI Elements / Chat/AI Thinking Indicator

AI Thinking Indicator

Loading indicator with multiple variants for AI processing states

Open in v0Open in

Overview

A loading indicator component for AI processing states. Multiple animation variants to match your design system.

Installation

bunx shadcn@latest add @elements/thinking-indicator

Usage

import { ThinkingIndicator } from "@/components/elements/ai-elements/chat/thinking-indicator";

export function LoadingState() {
  return (
    <ThinkingIndicator
      variant="dots"
      message="Thinking"
      showLabel
    />
  );
}

Props

PropTypeDefaultDescription
variant"dots" | "pulse" | "bounce""dots"Animation variant
messagestring"Thinking"Loading message
showLabelbooleantrueShow the message label
classNamestring-Additional CSS classes

Variants

  • dots: Three animated dots
  • pulse: Pulsing circle animation
  • bounce: Bouncing dots animation

Features

  • Multiple animation variants
  • Customizable loading message
  • Compact mode without label
  • Accessible loading states