AI Primitives

Components / Feedback / Thinking Bar

Thinking Bar

A shimmering status row with an optional expand action and a stop button.

Installation

Install the Thinking Bar React component with the shadcn CLI (after adding the @ai-primitive registry and theme, see Installation):

npx shadcn@latest add @ai-primitive/thinking-bar

Usage

import { ThinkingBar } from "@/components/ui/thinking-bar"

Related components

  • Skeleton - Quiet placeholders in the shape of the content that's loading.
  • Loader - Twelve loading-indicator styles - spinners, dots, bars, and shimmer text.
  • Text Shimmer - A shimmering gradient sweep across text, for a "thinking" state.
  • Feedback Bar - A thumbs up / thumbs down row for rating an AI response.
  • System Message - Action, warning, and error banners with an optional icon and call-to-action.

Previous: Text Shimmer · Next: Feedback Bar