Toast figures

Free

Ten small figures for the toast's picture slot that show an AI moment's own data in flat marks: a run, an approval gate, agents in parallel, a handoff, context, accuracy, a retry, latency, spend and a voice call.

npx shadcn@latest add https://pixilui.com/r/toast-figures.json

Preview

As the toast lands, the figure replays the moment, then only what changes moves.
Kind

When to use

Use it when

  • A toast about an agent's run or its numbers, where a picture of the data says it faster than a glyph: the step it is on, the context filling, a score against your bar, spend against the cap.
  • A toast that turns: render the next figure in the morph and the marks that changed glide there, and a value that lands bumps once.

Use something else when

  • Everyday news (saved, copied, offline): use the toast's glyph in a disc.
  • A chart on a page: these are 84 by 24 pictures for a toast, not charts.

Installation

Terminal
npx shadcn@latest add https://pixilui.com/r/toast-figures.json

Adds toast-figures.tsx with button.tsx, aurora-light.tsx and toast.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 { ToastFigures } from "@/components/pixilui/toast-figures";

<ToastFigures kind={kind} />

Figures draw at 84 by 24 in lively and are zoomed to fit quiet's 70 column; a toast with a figure takes that column, an icon toast keeps 40.

API reference

PropTypeDefault
kindRequired"run" | "crew" | "handoff" | "context" | "accuracy" | "retry" | "latency" | "spend" | "voice"–Which figure: run, crew, handoff, context, accuracy, retry, latency, spend or voice; the rest of the props are its data.

Also takes every native <span> attribute, and a ref.

Keyboard

TabNever takes focus: a figure is a picture, aria-hidden.

Accessibility

  • Every figure is aria-hidden: the toast's title and line say what it shows (Step 3 of 5, 184k of 200k tokens), so the picture is never the only signal.
  • One hue and grey, one size and weight: the meaning is in the position of the marks and the words, never in color alone.
  • Reduced motion: the figure draws at its end state and nothing bumps.

Motion

  • As the toast lands (its data-pxi-play), the figure replays the moment: the context first, then the news (the agent gliding, the bar filling, the spike tracing).
  • After that only the marks that change move: the agent glides to its next step, a lane fills, the turns fold into a summary.
  • A value that lands gives one small scale bump after the move that brought it (the check, the receiver, the summary, the try that went through). No loops but the call while it is live.
ToastA delete waits while the red rim runs out; Undo winds it back.
Aurora lightLight crosses the card, and what it passes over changes under it.
Activity mark36 tiny animations act out the work, and a new state hands over cell by cell.

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