Skip to content

@maxhealth.tech/prefab / auto / autoTimeline

Function: autoTimeline()

ts
function autoTimeline(events, options?): ContainerComponent;

Defined in: auto/timeline.ts:60

Auto-generate a chronological timeline.

Parameters

ParameterType
eventsAutoTimelineEvent[]
options?AutoTimelineOptions

Returns

ContainerComponent

Example

ts
autoTimeline([
  { title: 'Order placed', timestamp: '2026-04-20 10:30', status: 'completed', badge: 'Done', badgeVariant: 'success' },
  { title: 'Processing', timestamp: '2026-04-20 11:00', status: 'active' },
  { title: 'Shipped', timestamp: '', status: 'pending' },
], { title: 'Order Timeline' })

Released under the MIT License.