Skip to Content
Liquid Glass UI
Components

Trace

AI and task execution step list featuring running shimmer, destructive red error state, translucent pending state, and collapsible step details.

Fully compatible with the standard shadcn/ui JSX API (Trace / TraceLine / TraceIcon / TraceTitle / TraceDescription / TraceCollapsible / TraceCollapsibleTrigger / TraceCollapsibleContent):

  • Responsive typography: Secondary step labels at 15px on mobile ↔ 13px on desktop (brightening on hover/focus), with tabular numerals for durations.
  • States: status="running" animates a shimmer on the title (paused under Reduced Motion), error highlights in system red, and pending dims subtly.
  • Collapsible details: TraceCollapsible reuses Collapsible with Apple easing, rotating trailing chevron, and a hairline vertical guide aligned beneath the step icon.
apple-liquid-ui/preview/trace-demo
MacBook · 16:10

Installation (Shadcn Registry)

npx shadcn@latest add @apple-liquid/trace

Usage

import { CheckCircle2Icon } from 'lucide-react';
import {
  Trace,
  TraceDescription,
  TraceIcon,
  TraceLine,
  TraceTitle,
} from '@/components/ui/trace';

export function Example() {
  return (
    <Trace>
      <TraceLine>
        <TraceIcon>
          <CheckCircle2Icon />
        </TraceIcon>
        <TraceTitle>Read button.tsx</TraceTitle>
        <TraceDescription>0.4s</TraceDescription>
      </TraceLine>
      <TraceLine status="running">
        <TraceTitle>Fixing type errors…</TraceTitle>
      </TraceLine>
    </Trace>
  );
}

Props API

TraceLine

PropTypeDefaultDescription
status'running' | 'error' | 'pending'—Running (shimmer), error (red), or pending (translucent)

TraceCollapsible supports defaultOpen, or controlled open and onOpenChange.

On this page