Timeline
The Timeline component provides a vertical overview of events, milestones, or steps in a process.
Default timeline
Displays dated milestones with the current step highlighted.
-
Planning approved
Project scope, budget, and owners are confirmed so implementation can begin.
-
Design direction locked
Key visual decisions, copy structure, and component dependencies are aligned.
-
Development in progress
The component is integrated into the library and prepared for review in the styleguide.
-
Launch and follow-up
The final release is published together with guidance for editors and designers.
Sequential timeline
Collapses the date column for step-by-step process presentations.
-
Collect requirements
Gather the content, ordering, and interaction rules that the timeline should support.
-
Build the showcase
Add examples and local styles so the component can be reviewed and iterated inside the styleguide.
-
Validate the output
Run the local checks and confirm the component appears correctly in the documentation site.
API
| Parameter | Default | Description |
|---|---|---|
|
events
|
[] | An array of events |
|
sequential
|
false | If true, the events will be displayed in a sequential order |
CSS API
| Variable | Default | Type | Values | Description |
|---|---|---|---|---|
|
--c-timeline--base
|
var(--base) | range | - | Main unit that drives radius and spacing scales. |
|
--c-timeline--space
|
var(--space) | range | - | Base spacing unit. Used for padding and margin inside components. |
|
--c-timeline--border-width
|
var(--border-width) | range | - | Size |
|
--c-timeline--border-radius
|
var(--border-radius) | range | - | Border Radius |
|
--c-timeline--corner-shape
|
var(--corner-shape) | select | square, round, squircle, circular, bevel, scoop | Corner Shape |
|
--c-timeline--color--primary
|
var(--color--primary) | color | - | Primary |
|
--c-timeline--color--primary-contrast
|
var(--color--primary-contrast) | color | - | Primary Contrast |
|
--c-timeline--color--surface
|
var(--color--surface) | color | - | Surface |
|
--c-timeline--color--surface-alt
|
var(--color--surface-alt) | color | - | Manual companion token for subtle surface backgrounds. |
|
--c-timeline--color--surface-border
|
var(--color--surface-border) | color | - | Manual companion token for borders on surface elements. |
|
--c-timeline--color--surface-contrast
|
var(--color--surface-contrast) | color | - | Used for text and icons on surface backgrounds with less contrast. |
|
--c-timeline--font-size-100
|
var(--font-size-100) | range | - | Base font size. |