Skip to content
caliper ui pro docs

Thinking loader

A short animated loader for the moment before a reply begins.

Pro

When to use

  • The model is working but has nothing to show yet.
  • You want the wait to feel considered, not blank.

When not to use

  • Progress can be measured; use a progress bar.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/thinking-loader

Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

ThinkingLoader

4 props
PropTypeDefault
variantThinkingVariant"dots"
labelstring"Thinking"
phrasesreadonly string[]["Reading your question", "Looking through the files", "Drafting an answer"]
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes status semantics, with aria-label and aria-hidden kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/thinking-loader.md

The index of every part is at /llms.txt.

More in Premium pieces