Documentation / Data
Timeline
What happened, in order: the history of a file, an audit log, the progress of an order. GanttChart plans what is to come; a timeline tells what took place.
An ordered list of TimelineItems, each with its marker on a line that leads to the next: a dot, an icon in a disc or an avatar. An item says what happened (title), when (time, and dateTime for the machine), then the details (children). status says where it stands: done, under way (aria-current="step") or still to come (hollow dot, dashed line).
The timeline formats nothing and writes no text of its own: the dates and the words come from the application. No hooks: it renders on the server.
Examples
Basic usage
The history of a file, the newest first. dateTime gives the moment to the machine: the date is then written in a <time> element.
import { Timeline, TimelineItem } from "@synertech/ui";
export function Basic() {
return (
<Timeline aria-label="Historique du dossier">
<TimelineItem
title="Facture nº 2026-114 payée"
time="2 déc. 2026, 14 h 12"
dateTime="2026-12-02T14:12"
>
Paiement par carte.
</TimelineItem>
<TimelineItem title="Devis accepté" time="18 nov. 2026" dateTime="2026-11-18" />
<TimelineItem title="Devis envoyé au client" time="12 nov. 2026" dateTime="2026-11-12" />
<TimelineItem title="Dossier créé" time="3 nov. 2026" dateTime="2026-11-03" />
</Timeline>
);
}Icons and avatars
An icon takes the place of the dot, in a disc; an Avatar of size sm fills the place when a person acts. Both are decorative: the title names the event and the person.
import { Avatar, Timeline, TimelineItem } from "@synertech/ui";
const CheckIcon = () => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2} aria-hidden="true">
<path strokeLinecap="round" strokeLinejoin="round" d="m5 12.5 4.5 4.5L19 7.5" />
</svg>
);
const SendIcon = () => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.8} aria-hidden="true">
<path strokeLinejoin="round" d="M4 12 20 4l-4 16-4-6.5z" />
<path strokeLinecap="round" d="m12 13.5 8-9.5" />
</svg>
);
const FileIcon = () => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.8} aria-hidden="true">
<path strokeLinejoin="round" d="M6 3h8l4 4v14H6z" />
<path strokeLinejoin="round" d="M14 3v4h4" />
</svg>
);
export function IconsAndAvatars() {
return (
<Timeline aria-label="Activité">
<TimelineItem
icon={<CheckIcon />}
color="success"
title="Facture nº 2026-114 payée"
time="Il y a 12 min"
dateTime="2026-12-02T14:12"
/>
<TimelineItem
avatar={<Avatar size="sm" alt="Camille Roy" fallback="CR" />}
title="Commentaire de Camille Roy"
time="Hier, 16 h 40"
dateTime="2026-12-01T16:40"
>
<p className="m-0">On peut l'envoyer vendredi, le client attend la version signée.</p>
</TimelineItem>
<TimelineItem
icon={<SendIcon />}
title="Devis envoyé au client"
time="12 nov. 2026"
dateTime="2026-11-12"
/>
<TimelineItem
icon={<FileIcon />}
title="Dossier créé"
time="3 nov. 2026"
dateTime="2026-11-03"
/>
</Timeline>
);
}Done, under way, to come
Tracking an order: status="current" rings the step under way, and upcoming draws a hollow dot, a dashed line leading to it and a greyed title. The timeline does not write "expected": the application says it.
import { Timeline, TimelineItem } from "@synertech/ui";
export function Statuses() {
return (
<Timeline aria-label="Suivi de la commande nº 48213">
<TimelineItem title="Commande reçue" time="28 nov., 9 h 05" dateTime="2026-11-28T09:05" />
<TimelineItem title="Préparée" time="29 nov., 15 h 30" dateTime="2026-11-29T15:30" />
<TimelineItem
status="current"
title="En transit"
time="Depuis le 1er déc."
dateTime="2026-12-01"
>
Centre de tri de Laval.
</TimelineItem>
<TimelineItem
status="upcoming"
title="Livrée"
time="Prévue le 4 déc."
dateTime="2026-12-04"
/>
</Timeline>
);
}Horizontal
A handful of steps across the width, each as wide as the others. A long history stays vertical.
import { Timeline, TimelineItem } from "@synertech/ui";
export function Horizontal() {
return (
<Timeline
orientation="horizontal"
aria-label="Suivi de la commande nº 48213"
className="w-full"
>
<TimelineItem title="Reçue" time="28 nov." dateTime="2026-11-28" />
<TimelineItem title="Préparée" time="29 nov." dateTime="2026-11-29" />
<TimelineItem status="current" title="En transit" time="1er déc." dateTime="2026-12-01" />
<TimelineItem
status="upcoming"
title="Livrée"
time="Prévue le 4 déc."
dateTime="2026-12-04"
/>
</Timeline>
);
}Colours
color tints the marker: a declined payment in red, a reminder in yellow. The colour adds to the title and never replaces it: "Payment declined" is written, not only painted.
import { Timeline, TimelineItem } from "@synertech/ui";
const AlertIcon = () => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.8} aria-hidden="true">
<circle cx="12" cy="12" r="8.5" />
<path strokeLinecap="round" d="M12 7.5v5.5M12 16.5v.01" />
</svg>
);
export function Colors() {
return (
<Timeline aria-label="Paiements">
<TimelineItem
color="error"
status="current"
icon={<AlertIcon />}
title="Paiement refusé"
time="Aujourd'hui, 8 h 02"
dateTime="2026-12-02T08:02"
>
La banque a refusé la carte se terminant par 4417.
</TimelineItem>
<TimelineItem color="warning" title="Rappel envoyé" time="30 nov." dateTime="2026-11-30" />
<TimelineItem color="info" title="Échéance repoussée" time="20 nov." dateTime="2026-11-20" />
<TimelineItem
color="success"
title="Premier paiement reçu"
time="3 nov."
dateTime="2026-11-03"
/>
</Timeline>
);
}In a card
An activity log beside a record: the timeline takes the width of the card, and the details wrap.
import { Avatar, Card, CardBody, CardHeader, Timeline, TimelineItem } from "@synertech/ui";
export function InACard() {
return (
<Card className="w-full max-w-sm">
<CardHeader divider>Activité</CardHeader>
<CardBody>
<Timeline aria-label="Activité">
<TimelineItem
avatar={<Avatar size="sm" alt="Léa Martin" fallback="LM" />}
title="Léa Martin a modifié le montant"
time="Il y a 5 min"
dateTime="2026-12-02T14:19"
>
1 240,00 $ → 1 320,00 $
</TimelineItem>
<TimelineItem
avatar={<Avatar size="sm" alt="Camille Roy" fallback="CR" />}
title="Camille Roy a joint un fichier"
time="Hier"
dateTime="2026-12-01"
>
bon-de-commande-48213.pdf
</TimelineItem>
<TimelineItem title="Fiche créée" time="3 nov." dateTime="2026-11-03" />
</Timeline>
</CardBody>
</Card>
);
}API reference
Components
What happened, in order: the history of a file, an audit log, the progress of an order. GanttChart plans what is to come; a timeline tells what took place.
An ordered list of TimelineItems, each with its marker on a line that runs from one to the next. No hooks, no handlers and no text of its own: it renders on the server, and UILabelsProvider has nothing to give it.
import { Timeline } from "@synertech/ui";Props — TimelineProps
| Prop | Type | Default | Description |
|---|---|---|---|
children |
ReactNode |
— | The |
orientation |
TimelineOrientation |
"vertical" |
|
+ 281 inherited native attributes from OlHTMLAttributes, HTMLAttributes, AriaAttributes (className, id, aria-*, event handlers…).
One event of a Timeline: its marker (a dot, an icon or an avatar), what happened, when, and the details. Renders on the server, like the list.
import { TimelineItem } from "@synertech/ui";Props — TimelineItemProps
| Prop | Type | Default | Description |
|---|---|---|---|
avatar |
ReactNode |
— | Who did it, drawn on the line in place of the dot: an |
children |
ReactNode |
— | The details, under the title and the time: a comment, a description, a link. Without |
color |
TimelineItemColor |
— | The hue of the marker: grey by default, the brand's for the current item. It adds to what the title says and never says it alone: "Payment declined" is written, not only drawn in red. |
dateTime |
string |
— | The moment |
icon |
ReactNode |
— | A picture of the event, drawn in a disc on the line in place of the dot. It is decorative and hidden from assistive technologies: the title says it. An |
status |
TimelineItemStatus |
"completed" |
|
time |
ReactNode |
— | When it happened, written as the reader reads it: "12 min ago", "Nov 12, 2026". The timeline formats nothing: an upcoming item says "expected" here, in the application's words. |
title |
ReactNode |
— | What happened, in one line: "Invoice 2026-114 paid". Left out, the children take its place. |
+ 277 inherited native attributes from HTMLAttributes, AriaAttributes, DOMAttributes (className, id, aria-*, event handlers…).
Types
type TimelineItemColor = "neutral" | "primary" | "success" | "warning" | "error" | "info"Where an item stands in the story: done, under way, or still to come.
type TimelineItemStatus = "completed" | "current" | "upcoming"type TimelineOrientation = "vertical" | "horizontal"