Reference

Timeline

Events in order (<ol>), each a dot on a line, its title, its time and its block.

Timeline { … }

Since 6.2.0

No props to try.

  1. 7.0 released

    Typed requests, results and error enums.

  2. 6.1 released

    Charts and QR codes on a web page.

  3. Public beta

    The first hundred projects moved over.

Example

wf

Timeline { Timeline.Item("7.0 released", at: @2026-11-10) { Text("Typed requests, results and error enums.") } Timeline.Item("6.1 released", at: @2026-09-02) { Text("Charts and QR codes on a web page.") } Timeline.Item("Public beta", at: @2026-06-15) { Text("The first hundred projects moved over.").muted } }

Drawn from a list, notes as Markdown

wf

state releases = [{ version: "7.0.1", date: "2026-11-14", notes: "Fixes a **refused write**." }, { version: "7.0.0", date: "2026-11-10", notes: "See the [changelog](/learn)." }] Timeline { for r in releases by r.version { Timeline.Item(r.version, at: r.date) { Markdown(r.notes) } } }

A step with no date yet

wf

Timeline { Timeline.Item("Order placed", at: @2026-11-15T10:12Z) { Text("Paid by card.") } Timeline.Item("Shipped") { Text("Waiting for the courier.").muted } }

Props

This element takes no props of its own.

Attribute families: global, aria, data. Plus the 22 universal props every element takes: animate:, exit:, speed:, duration:, delay:, easing:, stagger:, on:, count:, shared:, class:, ref:, drag:, dragGroup:, dropValue:, dropAxis:, dropInside:, roving:, trapFocus:, mount:, update:, cleanup:.

Flags and cases

A flag is written after the parentheses with a dot: a Bool prop, or a case of one of the element's enum props. A case the enum lacks is an error with a hint.

No flags of its own.

Events

Every element also takes the props, the events and the attribute families listed on every element.

Slots

children

Parts

The parts of Timeline are written under its name, inside it. Each is described here, with what it takes.

Timeline.Item

One event: its title, at: its time, and its block.

Timeline.Item(_ title: String, at: Date or DateTime or String) { … }
Props of Timeline.Item
PropTypeUnsetMeaning

title

String (positional)

—

What happened, in bold above the date

at:

Date or DateTime or String

none: no date

When: a Date, a DateTime or an ISO string, written as a medium date (Jan 2, 2026) in a <time datetime>

Drawn for it

What Timeline draws itself, by the class a stylesheet can select. They are not written.

Drawn for it
PartClassMeaning

Timeline.Time

—

An event's time (<time>).

Renders with the class wf-timeline, stable across releases, so a stylesheet may target it.

These controls list the props' cases; the example below shows them written.