Timeline

Events in order along a line — an order history, a release log, the steps of a process — vertical or horizontal, with content on one side, on both sides or alternating. The events are an ordered list for screen readers.

Features8APIThemingAccessibility

Basic

Each item of value is an event; the txTimelineContent template draws it. The empty opposite side keeps the line in the middle — fill it or narrow it as in the next examples.

  1. Ordered
  2. Processing
  3. Shipped
  4. Delivered

Alignment

align puts the content on the left (default), on the right, or swaps sides on every other event with alternate.

Left

  1. Ordered
  2. Processing
  3. Shipped
  4. Delivered

Right

  1. Ordered
  2. Processing
  3. Shipped
  4. Delivered

Alternate

  1. Ordered
  2. Processing
  3. Shipped
  4. Delivered

Opposite

txTimelineOpposite fills the other side of the line — a date or a time next to each event.

  1. 15/10/2026 10:30
    Ordered
  2. 15/10/2026 14:00
    Processing
  3. 15/10/2026 16:15
    Shipped
  4. 16/10/2026 10:00
    Delivered

Horizontal

layout="horizontal" lays the events out in a row. align keeps the line above the content (top, default), below it (bottom) or switches on every other event (alternate).

  1. 2023
  2. 2024
  3. 2025
  4. 2026
  1. 2023
  2. 2024
  3. 2025
  4. 2026
  1.  
    2023
  2.  
    2024
  3.  
    2025
  4.  
    2026

Template

txTimelineMarker replaces the dot — here an icon in a circle of the event tone — and the content template draws a card for each event.

  1. 15/10 10:30
    OrderedStep

    Two items, paid by card.

  2. 15/10 14:00
    ProcessingStep

    Packed at the north warehouse.

  3. 15/10 16:15
    ShippedStep

    Handed to the courier, tracking sent.

  4. 16/10 10:00
    DeliveredDone

    Signed for at the front desk.

Connector

txTimelineConnector draws the line from an event to the next one — solid after finished steps, dashed after the rest. pt narrows the empty opposite side so the line sits at the start.

  1. Account created
  2. Domain verified
  3. Team invited
  4. First project published

Design tokens

dt changes the marker, the line and the event height of one timeline.

  1. Ordered
  2. Processing
  3. Shipped
  4. Delivered

Pass through

pt adds classes and styles to the parts — here a fixed-width date column and more space under each release.

  1. Nov 2026
    2.4.0
  2. Sep 2026
    2.3.1
  3. Aug 2026
    2.3.0
  4. May 2026
    2.2.0