packages/components/eui-timeline/eui-timeline.component.ts
A timeline component that displays a vertical list of events or activities in chronological order. Can be configured to align items on the left side instead of centered.
<eui-timeline>
<eui-timeline-item
label="Project Started"
date="Jan 15, 2024"
time="09:00"
euiSuccess>
</eui-timeline-item>
<eui-timeline-item
label="Milestone Reached"
date="Feb 20, 2024"
euiInfo>
</eui-timeline-item>
</eui-timeline>
<!-- Left-aligned timeline -->
<eui-timeline [isLeftAligned]="true">
<eui-timeline-item label="Event 1" />
<eui-timeline-item label="Event 2" />
</eui-timeline>| selector | eui-timeline |
| template | |
| styleUrl | ./eui-timeline.scss |
Inputs |
HostBindings |
Accessors |
| e2eAttr |
Type : string
|
Default value : 'eui-timeline'
|
| isLeftAligned |
Type : boolean
|
|
When true, aligns timeline items to the left side instead of center |
| class |
Type : string
|
|
Computes and returns the CSS classes for the timeline component |
| cssClasses |
getcssClasses()
|
|
Computes and returns the CSS classes for the timeline component
Returns :
string
|