Skip to content
Sign upGet access
MicrointeractionsTrace outlineMenu

Trace outline (Pro)

ProIncluded in $99

A row whose own outline is its progress bar: it traces round the row, laps it when the length is unknown, and closes green or stops red.

ProA deploy on a loop: each row's outline is its progress, the build traces its percent, checks lap with no known length, and a timed out sync stops in red before the retry lands.

A row that needs no bar and no badge. The trace leaves the middle of the row's left edge and runs clockwise round it as the work moves, following progress on a heavy spring, while the status sits at the end in plain words. Work with no known length gets a short trace that laps the row. Done closes the loop in green as the run check becomes a check; a failure stops the trace where it broke, in red.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/trace-outline

Needs chatcn Pro

This command works with a Pro license, along with every Pro component.

Or start free: sign up and get three Pro components on us, with a new one every month.

Usage

tsx
import { TraceOutline } from "@/components/ui/chatcn/pro/trace-outline"

<TraceOutline status="running" progress={0.62}>
  <span>Build</span>
</TraceOutline>
<TraceOutline status="running" labels={{ running: "Checking" }}>
  <span>Checks</span>
</TraceOutline>

Examples

States

ProFour rows of an indexing job, each outline saying its state: dashed while queued, a trace at 62 percent, closed green, and stopped red.

Props

PropTypeNotes
status"queued" | "running" | "done" | "error"
progressnumber0 to 1. Leave out for unknown length
labelsPartial<Record<status, string>>Default Queued, Building, Live, Build failed
childrenReactNodeWhat the work is, on the left

Accessibility

  • The status is a role="status", with the label (and percent while running) as its text.
  • Status colour always comes with the mark's shape and a word.

Motion

  • The outline is one SVG path with pathLength 100, so progress maps straight to stroke-dasharray.
  • Labels edit in place with the Pro text morph, in a box reserved for the longest label, so nothing in the row moves.
  • Reduced motion: the lap stands still and progress jumps.