Web · Components
Timeline
Shows events or steps in chronological order on a line: activity feed, order/shipment tracking, change history, roadmap, process steps.
Live example
Preview
Today
- Ayşe Yılmaz released version 2.4.0The release notes were sent to everyone on the team.
- Mehmet Kaya left a comment“The back button closes the Dialog on mobile, great!”I tried it on a real device; it behaves the same on iOS and Android. Could we look at the Sheet too?
- Build failedtests/e2e/dialog.spec.ts › 3 tests
Yesterday
- Zeynep Demir joined the project
- 12 components, 3 new icons
Thursday, October 22
- Project created
Code
Events
- Events appear here when you interact with the preview.
Order tracking: icon markers, statuses
- Order received (Done)
- Payment confirmed (Done)
- Shipped (Done)Aras Kargo · Tracking no. 1234 5678 90
- Out for delivery (Current step)The courier will deliver by 18:00 today.
- Delivered (Pending)
Horizontal steps (marker=number), the current step is centered
- Account (Done)Email and password
- Profile (Done)Name, photo
- Team (Current step)Invite your friends
- Payment (Pending)Pick a plan
- Done (Pending)
Roadmap: cards spread to both sides
- October 2026Infrastructure (Done)Monorepo, theme, utilities.
- November 2026Core components (Done)Form, overlays, navigation.
- December 2026Data components (Current step)DataGrid, TreeView, Chart, Timeline.DataGridTreeViewTimeline
- January 2027AI skill and 1.0 (Pending)Catalog refresh, stable release.
Change history: times on the left (timePosition=opposite)
Today
- Ayşe Yılmaz released version 2.4.0The release notes were sent to everyone on the team.
- Mehmet Kaya left a comment“The back button closes the Dialog on mobile, great!”I tried it on a real device; it behaves the same on iOS and Android. Could we look at the Sheet too?
- Build failedtests/e2e/dialog.spec.ts › 3 tests
Yesterday
- Zeynep Demir joined the project
- 12 components, 3 new icons
Thursday, October 22
- Project created
Chat-like feed: the side is fixed with side, opposite content
- CustomerSupport ticket opened
- SupportTicket taken into review
- More info requestedCould you share the order number?
- Order no: #7012
- Resolved (Done)
Long feed: maxVisible={3}, placeholders at the end (loading)
- Ayşe Yılmaz released version 2.4.0The release notes were sent to everyone on the team.
- Mehmet Kaya left a comment“The back button closes the Dialog on mobile, great!”I tried it on a real device; it behaves the same on iOS and Android. Could we look at the Sheet too?
- Build failedtests/e2e/dialog.spec.ts › 3 tests
Show 3 moreShow less
Ongoing process: a dashed tail after the last item (line), empty state
- Draft (Done)
- In review (Current step)
Import
Shows events or steps in chronological order on a line: activity feed, order/shipment tracking, change history, roadmap, process steps. Entries are given with the items array.
- It is a server component: Used directly in Next.js pages; date formatting, grouping and sorting happen on the server, no JavaScript is sent to the client. Expand/collapse works with native
<details>. - Layout: Vertical or horizontal; content on one side of the line or alternating on both (
align="alternate"). The time next to the title, above it or on the opposite side of the line (timePosition). - Markers: Dot, icon, index number or a fully custom element (avatar). Color with
tone, done / current / pending withstatus. - Grouping: With
groupBy="day", headings like "Today", "Yesterday", "Tuesday, October 28"; month, year or your own key. Headings can be sticky and collapsible. - Long lists: "Show N more entries" with
maxVisible; details collapse withcollapsible; placeholders withloading. - Mobile: An alternating or opposite-column timeline switches to a single column on small screens; a horizontal timeline scrolls by finger and the current step is centered. All done with CSS; no measuring.
- Accessibility: An ordered list (
<ol>); time is<time dateTime>, the state is read as text to screen readers, the current step getsaria-current="step". Flips automatically in right-to-left languages.
Examples
TimelineDate
typeValues accepted as dates: Date, an ISO string or milliseconds.
TimelineGroupBy
typeInterval by which items are grouped.
"day": by day ("Today", "Yesterday", "Monday, October 12, 2026")."month": by month ("October 2026")."year": by year ("2026").- Function: returns the item's group key (e.g.
(item) => item.project). The key itself is shown as the title; change it withgroupLabel.
Date format: Intl options or "relative" (relative: "3 hours ago").
TimelineStatus
typeProgress state of an entry (step-by-step processes, order tracking):
"done": Completed. The marker is filled with color, the next line is colored."active": The current step. The marker is a ring and pulses; it getsaria-current="step"and is scrolled into view in a horizontal timeline."pending": Not reached yet. The marker is empty, the line dashed, the text faded.
If omitted, the entry is just an event (activity feed, change history).
TimelineVariant
typeLook of the entries: plain or carded.
TimelineLine
typeStyle of the connector line after the entry. "none" removes the line.
TimelineItem
interfaceAn entry in the Timeline items array.
| Name | Type | Default | Description |
|---|---|---|---|
id? | string | number | Unique key. If omitted, its index is used. | |
title | ReactNode | Title. | |
description? | ReactNode | Short description below the title. Always visible, even in a collapsible entry. | |
content? | ReactNode | Detail content (text, image, card, list…). Shown when a collapsible entry opens. | |
time? | TimelineDate | Date of the entry: Date, ISO text or milliseconds. Grouping and sorting use it. | |
timeLabel? | ReactNode | Time text to show. If given, it replaces the formatted time (e.g. "Tomorrow, 14:00", "Week 2"); time is still used for grouping, sorting and <time dateTime>. | |
opposite? | ReactNode | Content on the opposite side of the line (e.g. amount, person, duration). If given, it is shown on the opposite side instead of the time; the time moves next to the title. | |
icon? | IconProp | Icon inside the marker: name ("check") or element. | |
marker? | ReactNode | The marker itself entirely (e.g. <Avatar size="sm" />). If given, it is drawn instead of the dot and icon. | |
tone? | Tone | Color of the marker. If omitted, "primary" when status is set, otherwise "neutral". "danger", "warning", "success" also bring their own icon on an icon marker. | |
status? | TimelineStatus | Progress state. See TimelineStatus. | |
href? | string | Link of the title. Internal addresses are rendered with the link component given to UIProvider (Next.js Link). | |
actions? | ReactNode | Actions at the end of the title row (e.g. a menu button). | |
collapsible? | boolean | Whether content toggles when the title is clicked. If omitted, the timeline's collapsible prop applies. | |
defaultOpen? | boolean | false | Whether a collapsible entry starts open. |
line? | TimelineLine | Style of the line after this entry. If omitted it is solid; dashed if the entry or the next one is "pending". If given on the last entry, the line continues downward with a short tail ("ongoing"). | |
side? | "start" | "end" | Fixes the entry's side in an align="alternate" timeline: "start" after the line (on the right in left-to-right languages), "end" before it. Used in chat-like feeds (incoming/outgoing). | |
tooltip? | TooltipProp | Tooltip shown when hovering the marker. See TooltipProp. | |
className? | string | Classes added to the entry's container (<li>). |
TimelineAlign
typePlacement of the content relative to the line:
"start": The line first, content after it (line on the left in left-to-right languages). Horizontally the content is below the line."end": The line last, content before it. Horizontally the content is above the line."alternate": The line in the middle, entries alternate on both sides.
Position of the time:
"end": At the end of the title row, small and faded."top": Above the title."opposite": On the opposite side of the line (e.g. times on the left, events on the right).
TimelineMarker
typeDefault style of markers (the entry's icon and marker always take precedence):
"dot": A small dot."icon": An icon in a circle; for entries without an icon a check or tone icon by state, otherwise a small dot."number": The index in a circle; a check mark on completed steps.
TimelineLabels
interfaceTexts of Timeline. Defaults come from the dictionary's ui texts (timelineEmpty, loading, timelineDone…) in a client tree, Turkish on the server; the labels prop overrides them.
| Name | Type | Description |
|---|---|---|
empty | string | When there are no entries. Defaults to the UIProvider text ("Henüz kayıt yok" in Turkish). |
loading | string | Read to screen readers while loading. Defaults to the UIProvider text ("Yükleniyor" in Turkish). |
done | string | Screen reader text of the "done" status. Defaults to the UIProvider text ("Tamamlandı" in Turkish). |
active | string | Screen reader text of the "active" status. Defaults to the UIProvider text ("Şu anki adım" in Turkish). |
pending | string | Screen reader text of the "pending" status. Defaults to the UIProvider text ("Bekliyor" in Turkish). |
showMore | string | Button revealing hidden entries; {count} is the number of hidden entries. Defaults to the UIProvider text ("{count} kayıt daha göster" in Turkish). |
showLess | string | Button hiding the revealed entries again. Defaults to the UIProvider text ("Daha az göster" in Turkish). |
groupCount | string | Entry count in a collapsible group heading; {count}. Defaults to the UIProvider text ("{count} kayıt" in Turkish). |
TimelineClassNames
interfaceClasses that can be passed to the inner parts of Timeline.
| Name | Type | Description |
|---|---|---|
item? | string | Each entry (<li>). |
marker? | string | Marker (dot, icon circle). |
line? | string | Connector line. |
body? | string | Content column of the entry (a card if variant="card"). |
title? | string | Title. |
description? | string | Description. |
content? | string | Detail content. |
time? | string | Time text. |
opposite? | string | Column on the opposite side. |
groupHeader? | string | Group heading row. |
TimelineProps
interfaceProps of the Timeline component.
Extends: Omit<ComponentProps<"div">, "children">
| Name | Type | Default | Description |
|---|---|---|---|
items | readonly T[] | Entries. Drawn in the given order; to sort by date use sort. | |
orientation? | "vertical" | "horizontal" | "vertical" | Direction. A horizontal timeline scrolls sideways if it doesn't fit. |
align? | TimelineAlign | "start" | Position of the content relative to the line. See TimelineAlign. |
timePosition? | TimelineTimePosition | "end"` vertically; `"opposite"` with `align="alternate"` or horizontally. | Position of the time. See TimelineTimePosition. |
marker? | TimelineMarker | "dot" | Default style of markers. See TimelineMarker. |
variant? | TimelineVariant | CustomVariant<"timeline"> | "plain" | Look. "card" shows each entry's content in a bordered card (for activity feeds and alternating timelines). Classes of a custom style added with defineAppearance are added to each entry's content column (laid out like plain unless extends is given). If omitted, UIProvider appearance.defaults.timeline.variant. |
effect? | EffectProp | Effect or effects applied to each entry's content column (the card in the carded look) (e.g. "lift", ["tilt", "glow"]). If omitted, UIProvider appearance.defaults.timeline.effect. See BuiltinEffect. | |
size? | Size | "md" | Size: marker, text and spacing. |
groupBy? | TimelineGroupBy<T> | Groups entries and puts a heading at the start of each group (e.g. "Today", "Yesterday", "October 2026"). See TimelineGroupBy. Entries are assumed sorted; consecutive entries with the same key form a group. Applies only to vertical timelines. | |
groupLabel? | (key: string, date: Date | undefined) => ReactNode | Customizes the group heading. key is the group key ("2026-10-31", "2026-10", "2026" or what the groupBy function returned), date is the date of the first entry in the group. | |
stickyGroups? | boolean | false | The group heading stays stuck at the top while scrolling. |
collapsibleGroups? | boolean | readonly string[] | Groups toggle when their heading is clicked; the heading shows the entry count. If true, all start open; if an array is given, only groups with these keys start open. | |
sort? | "asc" | "desc" | Sorts entries by date: "asc" oldest to newest, "desc" newest to oldest. | |
timeFormat? | TimelineTimeFormat | ((date: Date) => ReactNode) | Time (`14:30`) in day groups, day and time in month groups,
date and time without grouping. | Format of the time: Intl options ({ dateStyle: "medium" }), "relative" ("3 hours ago") or a function producing content from the date. |
locale? | string | Locale for dates and relative time. Defaults to the UIProvider's locale in a client tree, "tr-TR" on the server. | |
timeZone? | string | Time zone (e.g. "Europe/Istanbul"). If omitted, the time zone of the rendering environment. For timelines rendered on the server and re-rendered on the client (inside a client component), pass it so both sides produce the same text. | |
now? | TimelineDate | The moment "Today", "Yesterday" and relative time ("3 hours ago") are computed from. If omitted, the render time. | |
collapsible? | boolean | false | Whether entries with content (content) toggle when their title is clicked. The entry's collapsible takes precedence. The browser's find in page (Ctrl+F) finds and opens collapsed content too. |
maxVisible? | number | How many entries are visible first in a vertical timeline? The rest are hidden behind a "Show N more entries" button. Needs no JavaScript. | |
loading? | boolean | number | 3 placeholders (`true`) | Loading view: faded placeholders instead of content. If a number is given, that many placeholders are drawn. If items isn't empty, the placeholders are appended at the end (while the next page loads in infinite scrolling). |
empty? | ReactNode | Content shown when there are no entries. Defaults to the UIProvider text ("Henüz kayıt yok" in Turkish). | |
responsive? | boolean | true | Whether a vertical timeline switches to a single column on small screens (below 640 px). The line moves to the start and the opposite content drops above the title. |
oppositeWidth? | string | "6rem" | Width of the opposite column (with align="start" or "end" and timePosition="opposite"). Any CSS length. |
itemWidth? | string | 8rem`, `10rem`, `12rem` by size | Minimum width of an entry in a horizontal timeline. Entries fill the area; if they don't fit it scrolls sideways. |
headingLevel? | number | 3 | Level of group headings (<h1>–<h6>). |
labels? | Partial<TimelineLabels> | Component texts. See TimelineLabels. | |
classNames? | TimelineClassNames | Classes added to the inner parts. |