Skip to content

Timeline

<ax-timeline> renders an ordered list of events with connected markers. It works in two modes — projected <ax-timeline-item> children, or data-driven via [items] — and supports vertical/horizontal orientation plus an alternating (zig-zag) layout for vertical timelines.

import {
AxTimelineComponent,
AxTimelineItemComponent,
type TimelineItem,
} from '@axisui-ng/data';
<!-- projected: rich per-item content -->
<ax-timeline>
<ax-timeline-item title="Created" time="09:00" color="primary">Order placed.</ax-timeline-item>
<ax-timeline-item title="Shipped" time="14:20" icon="check" color="success">Left the warehouse.</ax-timeline-item>
<ax-timeline-item title="Delivered" time="17:45" icon="check" color="success" />
</ax-timeline>
<!-- data-driven, alternating -->
<ax-timeline [items]="events" align="alternate" />
events: TimelineItem[] = [
{ title: 'Created', time: '09:00', description: 'Order placed', color: 'primary' },
{ title: 'Shipped', time: '14:20', icon: 'check', color: 'success' },
];
OptionValuesDefaultNotes
orientation'vertical' | 'horizontal''vertical'Rail orientation.
align'start' | 'alternate''start'alternate zig-zags (vertical only).
color (item)'default' | 'primary' | 'success' | 'warning' | 'destructive''default'Marker tint.
<ax-timeline orientation="vertical" align="alternate">
<ax-timeline-item title="A" color="primary" />
<ax-timeline-item title="B" color="success" />
</ax-timeline>
InputTypeDefaultNotes
orientationTimelineOrientation'vertical''vertical' | 'horizontal'.
alignTimelineAlign'start''start' | 'alternate'; alternate is vertical only.
itemsTimelineItem[] | nullnullData-driven mode; when set, projected content is ignored.
FieldTypeNotes
titlestringRequired.
timestringOptional timestamp/meta.
descriptionstringOptional description line.
iconAxIconNameOptional marker icon (replaces the dot).
colorTimelineColorOptional marker tint.
InputTypeDefaultNotes
titlestring (required)Event title.
timestring | nullnullTimestamp/meta line.
descriptionstring | nullnullDescription line.
iconAxIconName | nullnullMarker icon (replaces the dot).
colorTimelineColor'default'Marker tint.

Projected content under the item is additional body below title/description.

Container role="list"; each item role="listitem"; markers and connectors are aria-hidden.

Interactive examples live in Storybook under Data / Timeline. Run pnpm storybook to explore them.