Blokd UIDocsv1.1.0

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/blokd-ui@1.1.0 add timeline

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

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

Download the registry source for timeline 1.1.0.

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;
})