Activity mark

Free

What an agent is doing right now, acted out on a 5 by 5 grid at 16px or larger: a radar sweep while it searches, a reading head through text, a question mark when it needs you. 36 activities.

npx shadcn@latest add https://pixilui.com/r/thinking-mark.json

Preview

36 tiny animations act out the work, and a new state hands over cell by cell.
State
Variant

When to use

Use it when

  • Leading the reasoning trail's folded working line: the mark, what it is doing in words ("Reading 2 of 2 sources") and the time.
  • A tool call or a run row that is working: the 16px mark next to its words.
  • Any of the 36 activities: thinking, planning, remembering, comparing, brainstorming, deciding; searching, reading, browsing, indexing, fetching, analyzing; writing, editing, summarizing, translating, generating, compacting; running, testing, debugging, building, deploying, merging; listening, speaking, asking, waiting, calling, delegating; idle, queued, paused, retrying, done, failed.

Use something else when

  • The agent's face: use the agent avatar. The mark doesn't sit beside it.
  • A run's status in a pill: use agent status.
  • Decoration: it means the agent is doing that thing now.

Installation

Terminal
npx shadcn@latest add https://pixilui.com/r/thinking-mark.json

Adds thinking-mark.tsx, and installs clsx and tailwind-merge. The URL works in any app with a components.json, with no registry to add first.

Usage

example.tsx
import { ThinkingMark } from "@/components/pixilui/thinking-mark";

<ThinkingMark state={state} />

Any size in CSS pixels. At 16 to 28 each cell is a whole number of device pixels with square corners; larger, corners round with matching inside fillets.

API reference

PropTypeDefault
stateRequired"thinking" | "planning" | "remembering" | "comparing" | "brainstorming" | "deciding" | "searching" | "reading" | "browsing" | "indexing" | "fetching" | "analyzing" | "writing" | "editing" | "summarizing" | "translating" | "generating" | "compacting" | "running" | "testing" | "debugging" | "building" | "deploying" | "merging" | "listening" | "speaking" | "asking" | "waiting" | "calling" | "delegating" | "idle" | "queued" | "paused" | "retrying" | "done" | "failed"–What the agent is doing: one of the 36 activities ("searching", "writing", "asking", "done").
sizenumber16CSS pixels. 16 to 28 draws crisp pixel blocks; larger rounds the corners.
variant"blocks" | "grid""blocks"blocks: one moulded shape (default). grid: cells in visible sockets.
offsetnumber0Seconds added to the shared clock, so neighbours don't pulse together (index times .37).
atnumber–Hold one frame at this time (seconds) instead of playing, for stills and tests.
labelstring–The mark's accessible name ("Searching"). Without it the mark is decorative: put the words next to it.

Also takes every native <canvas> attribute except width, height, and a ref.

Keyboard

TabNever takes focus: the mark is not interactive.

Accessibility

  • Decorative by default (aria-hidden): put the activity in words next to it. With label it is role img with that name.
  • Color is never the only signal: every activity has its own drawing.
  • Reduced motion: one representative frame per activity, drawn still, and no hand-off.

Motion

  • Each activity loops its own drawing (0.6 to 4.4s), rasterised onto 25 cells: brightness hands over between cells, nothing slides.
  • A new state hands over from the centre out: .26s per cell, .07s later per cell of distance.
  • Done draws its tick and holds from 1.5s. A soft lighter band drifts corner to corner every 3.8s. No glow.
  • Every mark on the page shares one clock; give neighbours an offset (index times .37s) so they don't pulse together. Off screen, a mark stops drawing.
  • Reduced motion: one still frame per activity.
Reasoning trailFolds into one line when the answer starts; anything that went wrong stays on it.
Agent statusA run's status fills as it goes and closes into its result, so it never jumps.
Agent avatarThe agent's face acts out its work, blinking on every change and hopping when done.

PixilUI Pro opens soon. The first 20 licenses are $99.