Timeline
A chronological list of events.
Examples
Vertical
- Jan 2026Project startedFirst commit.
- Jun 2026Beta releaseOpen to early users.
- Nov 2026Version 1.0General availability.
Razor
<div class="w-full max-w-sm">
<KlyTimeline Items="Items" Active="1" AriaLabel="Release history" />
</div>
@code {
private static readonly KlyTimelineItem[] Items =
[
new("Project started") { Date = "Jan 2026", Description = "First commit." },
new("Beta release") { Date = "Jun 2026", Description = "Open to early users." },
new("Version 1.0") { Date = "Nov 2026", Description = "General availability." },
];
}Horizontal
- MonOrdered
- TueShipped
- WedOut for delivery
- ThuDelivered
Razor
<div class="w-full max-w-2xl">
<KlyTimeline Items="Items" Active="2" Orientation="KlyOrientation.Horizontal" Color="KlyColor.Secondary" AriaLabel="Order tracking" />
</div>
@code {
private static readonly KlyTimelineItem[] Items =
[
new("Ordered") { Date = "Mon" },
new("Shipped") { Date = "Tue" },
new("Out for delivery") { Date = "Wed" },
new("Delivered") { Date = "Thu" },
];
}Pipeline, log and schedule
Layout picks the look of the same events. The schedule is an agenda: events sorted by start and grouped by day under Today and Tomorrow, with a time column, the length of each event, all-day events and the events without a date last. Pass Now for a stable server render.
Pipeline
- 09:12Build
- 09:14Test
- In progressCanary
- PendingPromote
Log
-
Build
-
Test
-
Canary
-
Promote
Schedule: an agenda grouped by day, Max 3 with Show more
-
Standup
-
Design review
Bring the mockups
Alice
-
Conference
Razor
<div class="grid w-full gap-6 lg:grid-cols-2">
<div>
<p class="mb-2 text-sm font-medium text-(--klyroo-text-highlighted)">Pipeline</p>
<KlyTimeline Layout="KlyTimelineLayout.Pipeline" Items="@_pipeline" AriaLabel="Release pipeline" />
</div>
<div>
<p class="mb-2 text-sm font-medium text-(--klyroo-text-highlighted)">Log</p>
<KlyTimeline Layout="KlyTimelineLayout.Log" Items="@_pipeline" AriaLabel="Release log" />
</div>
<div class="lg:col-span-2">
<p class="mb-2 text-sm font-medium text-(--klyroo-text-highlighted)">Schedule: an agenda grouped by day, Max 3 with Show more</p>
<KlyTimeline Layout="KlyTimelineLayout.Schedule" Items="@_events" Now="@_now" Max="3" Step="3" DayHeadingLevel="3" AriaLabel="Agenda" />
</div>
</div>
@code {
private static readonly TimeSpan Paris = TimeSpan.FromHours(1);
private readonly DateTimeOffset _now = new(2026, 3, 12, 9, 30, 0, Paris);
private readonly KlyTimelineItem[] _pipeline =
[
new("Build") { Date = "09:12", State = KlyTimelineState.Done },
new("Test") { Date = "09:14", State = KlyTimelineState.Done },
new("Canary") { Date = "In progress", State = KlyTimelineState.Current },
new("Promote") { Date = "Pending", State = KlyTimelineState.Upcoming },
];
private readonly KlyTimelineItem[] _events =
[
new("Standup") { At = new(2026, 3, 12, 9, 0, 0, Paris), EndAt = new(2026, 3, 12, 9, 30, 0, Paris), State = KlyTimelineState.Current },
new("Design review") { Description = "Bring the mockups", At = new(2026, 3, 12, 14, 0, 0, Paris), EndAt = new(2026, 3, 12, 15, 30, 0, Paris), Actor = "Alice" },
new("Conference") { At = new(2026, 3, 14, 0, 0, 0, Paris), EndAt = new(2026, 3, 16, 0, 0, 0, Paris) },
new("Release") { At = new(2026, 3, 20, 10, 0, 0, Paris) },
new("Book the venue"),
];
}API
KlyTimeline
List of events along a line, with the current one highlighted.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
Active |
int? |
Index of the last highlighted item in the default layout. Null highlights none. An item with a State uses it instead. | |
AriaLabel |
string |
Accessible name of the list. | |
Class |
string |
Classes added to the root element, merged last so they win over the theme. | |
Color |
KlyColor |
"primary" |
Semantic color of the timeline: a built-in KlyColor or the name of a color you defined. When not set, Color applies, else the default of the component. Values: primary, secondary, success, info, warning, error, neutral. |
DayHeadingLevel |
int? |
4 |
Heading level (1 to 6) of the day titles of the schedule layout, so they fit the outline of the page: a schedule under an h2 section takes 3. Null renders the day titles as plain text instead of headings. Defaults to 4. |
Items (required) |
IReadOnlyList |
The events, as KlyTimelineItem . | |
Layout |
KlyTimeline |
KlyTimeline |
The layout: Default (along a line), Pipeline , Log or Schedule . Values: Default, Pipeline, Log, Schedule. |
Max |
int? |
The number of events shown before a Show more button (all events when null ). In the schedule layout the events are sorted first, so Show more reveals later events. | |
Now |
DateTimeOffset? |
The reference time of the schedule layout, which names the days "Today" and "Tomorrow". UtcNow when not set. Pass it for tests and for stable server rendering. | |
Orientation |
KlyOrientation |
KlyOrientation. |
Direction of the default layout: Horizontal or Vertical . Values: Horizontal, Vertical. |
ShowNumbers |
bool |
false |
Numbers the markers of the default and pipeline layouts (1, 2, 3...) when an event has no icon. |
Size |
KlySize |
KlySize. |
Size of the timeline, from Xs to Xl . When not set, Size applies, else the default of the component. Values: Xs, Sm, Md, Lg, Xl. |
Step |
int? |
The number of events each click on Show more reveals (all the remaining ones when null ). | |
Ui |
TimelineUi |
Per-instance class overrides of the slots of the timeline, see TimelineUi . They are merged after the theme and the Class parameter wins on the root slot. |
Ui slots
Ui takes a TimelineUi with one class string per slot, merged after the theme.
| Slot | Styles |
|---|---|
Root |
Classes merged into the root slot of KlyTimeline , after the theme and the app configuration. |
Item |
Classes merged into the item slot of KlyTimeline , after the theme and the app configuration. |
Track |
Classes merged into the track slot of KlyTimeline , after the theme and the app configuration. |
Indicator |
Classes merged into the indicator slot of KlyTimeline , after the theme and the app configuration. |
Icon |
Classes merged into the icon slot of KlyTimeline , after the theme and the app configuration. |
Separator |
Classes merged into the separator slot of KlyTimeline , after the theme and the app configuration. |
Text |
Classes merged into the text slot of KlyTimeline , after the theme and the app configuration. |
Date |
Classes merged into the date slot of KlyTimeline , after the theme and the app configuration. |
Title |
Classes merged into the title slot of KlyTimeline , after the theme and the app configuration. |
Description |
Classes merged into the description slot of KlyTimeline , after the theme and the app configuration. |
Actor |
Classes merged into the actor slot of KlyTimeline , after the theme and the app configuration. |
Number |
Classes merged into the number slot of KlyTimeline , after the theme and the app configuration. |
PipelineList |
Classes merged into the pipelineList slot of KlyTimeline , after the theme and the app configuration. |
PipelineItem |
Classes merged into the pipelineItem slot of KlyTimeline , after the theme and the app configuration. |
LogList |
Classes merged into the logList slot of KlyTimeline , after the theme and the app configuration. |
LogItem |
Classes merged into the logItem slot of KlyTimeline , after the theme and the app configuration. |
LogTimestamp |
Classes merged into the logTimestamp slot of KlyTimeline , after the theme and the app configuration. |
LogMarker |
Classes merged into the logMarker slot of KlyTimeline , after the theme and the app configuration. |
LogDot |
Classes merged into the logDot slot of KlyTimeline , after the theme and the app configuration. |
LogIcon |
Classes merged into the logIcon slot of KlyTimeline , after the theme and the app configuration. |
LogBody |
Classes merged into the logBody slot of KlyTimeline , after the theme and the app configuration. |
LogTitle |
Classes merged into the logTitle slot of KlyTimeline , after the theme and the app configuration. |
LogDescription |
Classes merged into the logDescription slot of KlyTimeline , after the theme and the app configuration. |
LogActor |
Classes merged into the logActor slot of KlyTimeline , after the theme and the app configuration. |
Schedule |
Classes merged into the schedule slot of KlyTimeline , after the theme and the app configuration. |
ScheduleDay |
Classes merged into the scheduleDay slot of KlyTimeline , after the theme and the app configuration. |
ScheduleDayTitle |
Classes merged into the scheduleDayTitle slot of KlyTimeline , after the theme and the app configuration. |
Schedule |
Classes merged into the scheduleUnscheduled slot of KlyTimeline , after the theme and the app configuration. |
ScheduleList |
Classes merged into the scheduleList slot of KlyTimeline , after the theme and the app configuration. |
ScheduleCurrent |
Classes merged into the scheduleCurrent slot of KlyTimeline , after the theme and the app configuration. |
Schedule |
Classes merged into the scheduleCurrentTone slot of KlyTimeline , after the theme and the app configuration. |
ScheduleDone |
Classes merged into the scheduleDone slot of KlyTimeline , after the theme and the app configuration. |
ScheduleDoneTone |
Classes merged into the scheduleDoneTone slot of KlyTimeline , after the theme and the app configuration. |
ScheduleUpcoming |
Classes merged into the scheduleUpcoming slot of KlyTimeline , after the theme and the app configuration. |
Schedule |
Classes merged into the scheduleUpcomingTone slot of KlyTimeline , after the theme and the app configuration. |
ScheduleTimes |
Classes merged into the scheduleTimes slot of KlyTimeline , after the theme and the app configuration. |
ScheduleTime |
Classes merged into the scheduleTime slot of KlyTimeline , after the theme and the app configuration. |
ScheduleDuration |
Classes merged into the scheduleDuration slot of KlyTimeline , after the theme and the app configuration. |
ScheduleBody |
Classes merged into the scheduleBody slot of KlyTimeline , after the theme and the app configuration. |
ScheduleHeader |
Classes merged into the scheduleHeader slot of KlyTimeline , after the theme and the app configuration. |
ScheduleIcon |
Classes merged into the scheduleIcon slot of KlyTimeline , after the theme and the app configuration. |
ScheduleTitle |
Classes merged into the scheduleTitle slot of KlyTimeline , after the theme and the app configuration. |
Schedule |
Classes merged into the scheduleDescription slot of KlyTimeline , after the theme and the app configuration. |
ScheduleActor |
Classes merged into the scheduleActor slot of KlyTimeline , after the theme and the app configuration. |
More |
Classes merged into the more slot of KlyTimeline , after the theme and the app configuration. |
MoreIcon |
Classes merged into the moreIcon slot of KlyTimeline , after the theme and the app configuration. |
ScheduleEvent |
Classes merged into the scheduleEvent slot of KlyTimeline , after the theme and the app configuration. |