Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Thinking Orb

ProNew

A sphere of particles that stands in for an agent, easing between idle, listening and thinking.

Installation

pnpm dlx shadcn@latest add @viewport/thinking-orb

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
stateOrbState

`idle` turns slowly, `thinking` churns, `listening` breathes.

"idle"
sizenumber

Diameter in pixels.

96
particlesnumber

Number of particles on the sphere.

520
colorstring

Particle color. Defaults to the current text color.

—
labelstring

Accessible description, since the orb is drawn on a canvas.

"Assistant"
classNamestring—

Accessibility

  • Canvas has role=img and a label that includes the current state.
  • Holds a still frame under reduced motion and pauses off screen.
  • State changes ease, so nothing flashes or jumps.