Thinking Orb
ProNewA 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
| Prop | Type | Default |
|---|---|---|
| state | OrbState`idle` turns slowly, `thinking` churns, `listening` breathes. | "idle" |
| size | numberDiameter in pixels. | 96 |
| particles | numberNumber of particles on the sphere. | 520 |
| color | stringParticle color. Defaults to the current text color. | — |
| label | stringAccessible description, since the orb is drawn on a canvas. | "Assistant" |
| className | string | — |
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.