Create

General

Timeline

New
Copy page View as Markdown Open in ChatGPT Open in Claude

Displays a list of events in chronological order.

Usage#

app.component.ts
import { WDS_TIMELINE } from '@wds/angular/timeline';

Put wds-timeline-item elements in wds-timeline, newest or oldest first. Each item has a heading, a date and content in the default slot. Name the timeline with aria-label.

Examples#

Default#

A dot for each event, the title, the date (datetime gives the <time> element a machine-readable date) and a description.

Number field, table and timeline components. Stepper and scroll area. Tooltip, popover and hover card.

Progress#

value marks how far the process has got: earlier items are completed, the item at value is the current one (aria-current="step"), later ones are pending.

We received your order #48213. Your items are packed and ready to ship. The parcel is on its way to Warsaw. Expected on Oct 3.

Icons#

An icon in the icon slot shows in a circle; all markers then line up on one axis.

Mira Stone wants to merge 3 commits into release. Sana Qureshi was asked for a review. “Looks good, one question about the focus ring.” Sana Qureshi approved these changes.

Horizontal#

orientation="horizontal" puts the items in a row with the content below the line.

Interviews and research. Prototypes and tests. Development and QA. Rollout to all users.

Status colors#

--wds-timeline-indicator-color on an item sets the color of its marker, e.g. for success or failure. Say the status in the text too.

Build #1289 · all checks passed Build #1288 · health check timed out Build #1288

Rich content#

The title slot takes any content (here an avatar), and the default slot can hold a card.

MS Mira Stone upgraded the plan
Team → Business$480 / month
SQ Sana Qureshi added 12 seats
IV Ivo Vidal created the workspace

API References#

wds-timeline#

A list of events in time order (an activity log, a changelog, the history of an order), each with a marker on a line, a title, a date and content. value marks how far the timeline has got: items before it are completed and the item at value is the current one. Without value all items look the same.

Attributes

AttributeTypeDefaultDescription
valuenumber0The current item, counted from 1: earlier items are completed. 0 (default) marks no progress.
orientationWdsTimelineOrientation'vertical'Items in a column (default) or in a row.

Slots

SlotDescription
(default)wds-timeline-item elements.

CSS custom properties

PropertyDescription
--wds-timeline-indicator-sizeSize of the markers with an icon (default 24px; a dot is 8px).
--wds-timeline-gapSpace between items (default 24px).

wds-timeline-item#

One event of wds-timeline: a marker (a dot, or your icon in a circle) on the line, a title, a date and content. The timeline sets its state from its value.

Attributes

AttributeTypeDefaultDescription
headingstring''Title of the event.
datestring''Date or time of the event, as shown (e.g. Sep 28 or 2 h ago).
datetimestring | undefinedMachine-readable date for the <time> element (e.g. 2026-09-28).

Slots

SlotDescription
(default)Content under the title: a description, details, a card.
iconAn icon in the marker instead of the dot.
titleTitle (instead of heading).
dateDate (instead of date).

CSS parts (::part)

PartDescription
indicatorThe marker (dot or circle with the icon).
separatorThe line to the next item.
contentTitle, date and content.
titleThe title.
dateThe date (a <time> element).

CSS custom properties

PropertyDescription
--wds-timeline-indicator-colorColor of the marker, e.g. a status color for one item.

Accessibility#

Screen reader#

The timeline is a list and each item a listitem, so screen readers announce the number of events. Name the timeline with aria-label.

The markers and the line are decorative. The current item with value has aria-current="step"; completed and pending items differ only by color, so say the state in the text when it matters.

The date is a <time> element; datetime gives it a machine-readable value.

Keyboard support#

The timeline has no keyboard interaction of its own; links and buttons in the items are in the tab order.

Footer