AsterUIDocsv1.0.2

Docs / Component reference

Timeline

Read a sequence of events in order, with each change attached to its time and status.

Timeline example

Install

sh
npx @fierst/ui@1.0.2 add timeline

Registry dependencies: theme, icon. Package dependencies: @lucide/icons.

Exports from ./ui/timeline: TimelineItem, Timeline.

Download the registry source for timeline 1.0.2.

API contracts

ts
export interface TimelineItem {
  id: string;
  title: string;
  timestamp?: string;
  description?: View;
  icon?: LucideIconInput;
  tone?: 'neutral' | 'primary' | 'success' | 'warning' | 'danger';
}

export function Timeline({
  items,
  class: extraClass,
}: {
  items: readonly TimelineItem[];
  class?: string;
})