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),errorhighlights in system red, andpendingdims subtly. - Collapsible details:
TraceCollapsiblereusesCollapsiblewith Apple easing, rotating trailing chevron, and a hairline vertical guide aligned beneath the step icon.
Installation (Shadcn Registry)
npx shadcn@latest add @apple-liquid/traceUsage
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
| Prop | Type | Default | Description |
|---|---|---|---|
status | 'running' | 'error' | 'pending' | — | Running (shimmer), error (red), or pending (translucent) |
TraceCollapsible supports defaultOpen, or controlled open and onOpenChange.
Tooltip
Floating macOS 27 Liquid Glass tooltip pill with keyboard shortcut badge support, four-side anchoring, touch long-press adaptation, and glass={false} opaque mode.
Tree
macOS 27 Outline View-style tree with expand / collapse, single selection and cascading checkboxes, plus a TreeSelect that opens a Liquid Glass menu on desktop and an iOS 27 bottom Drawer on mobile.