v1.3.0 28

Timeline

A visual representation of events in chronological order.

Default

Vertical timeline with dots connected by a line and event details.

html
  1. Order placed

    Your order has been successfully placed

  2. Payment confirmed

    Payment has been processed and confirmed

  3. Shipped

    Package has been handed to the carrier

  4. Out for delivery

    Your package is on its way to you

<div class="vt-max-w-md vt-mx-auto">
  <ol class="vt-timeline">
    <li class="vt-timeline-item">
      <div class="vt-timeline-marker">
        <span class="vt-timeline-dot"></span>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <p class="vt-timeline-title">Order placed</p>
        <p class="vt-timeline-description">Your order has been successfully placed</p>
        <time class="vt-timeline-time">2 hours ago</time>
      </div>
    </li><li class="vt-timeline-item">
      <div class="vt-timeline-marker">
        <span class="vt-timeline-dot"></span>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <p class="vt-timeline-title">Payment confirmed</p>
        <p class="vt-timeline-description">Payment has been processed and confirmed</p>
        <time class="vt-timeline-time">1 hour ago</time>
      </div>
    </li><li class="vt-timeline-item">
      <div class="vt-timeline-marker">
        <span class="vt-timeline-dot"></span>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <p class="vt-timeline-title">Shipped</p>
        <p class="vt-timeline-description">Package has been handed to the carrier</p>
        <time class="vt-timeline-time">30 min ago</time>
      </div>
    </li><li class="vt-timeline-item">
      <div class="vt-timeline-marker">
        <span class="vt-timeline-dot"></span>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <p class="vt-timeline-title">Out for delivery</p>
        <p class="vt-timeline-description">Your package is on its way to you</p>
        <time class="vt-timeline-time">5 min ago</time>
      </div>
    </li>
  </ol>
</div>

With Icons

Timeline with icon circles instead of simple dots for each event.

html
  1. Order placed

    Your order has been successfully placed

  2. Payment confirmed

    Payment has been processed and confirmed

  3. Shipped

    Package has been handed to the carrier

  4. Out for delivery

    Your package is on its way to you

<div class="vt-max-w-md vt-mx-auto">
  <ol class="vt-timeline">
    <li class="vt-timeline-item">
      <div class="vt-timeline-marker">
        <div class="vt-icon-badge vt-icon-badge-sm">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-icon-badge-icon" aria-hidden="true">
            <path d="M12 22C11.1818 22 10.4002 21.6698 8.83693 21.0095C4.94564 19.3657 3 18.5438 3 17.1613C3 16.7742 3 10.0645 3 7M12 22C12.8182 22 13.5998 21.6698 15.1631 21.0095C19.0544 19.3657 21 18.5438 21 17.1613V7M12 22L12 11.3548" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8.32592 9.69138L5.40472 8.27785C3.80157 7.5021 3 7.11423 3 6.5C3 5.88577 3.80157 5.4979 5.40472 4.72215L8.32592 3.30862C10.1288 2.43621 11.0303 2 12 2C12.9697 2 13.8712 2.4362 15.6741 3.30862L18.5953 4.72215C20.1984 5.4979 21 5.88577 21 6.5C21 7.11423 20.1984 7.5021 18.5953 8.27785L15.6741 9.69138C13.8712 10.5638 12.9697 11 12 11C11.0303 11 10.1288 10.5638 8.32592 9.69138Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M6 12L8 13" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17 4L7 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
          </svg>
        </div>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <p class="vt-timeline-title">Order placed</p>
        <p class="vt-timeline-description">Your order has been successfully placed</p>
        <time class="vt-timeline-time">2 hours ago</time>
      </div>
    </li><li class="vt-timeline-item">
      <div class="vt-timeline-marker">
        <div class="vt-icon-badge vt-icon-badge-sm">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-icon-badge-icon" aria-hidden="true">
            <path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
          </svg>
        </div>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <p class="vt-timeline-title">Payment confirmed</p>
        <p class="vt-timeline-description">Payment has been processed and confirmed</p>
        <time class="vt-timeline-time">1 hour ago</time>
      </div>
    </li><li class="vt-timeline-item">
      <div class="vt-timeline-marker">
        <div class="vt-icon-badge vt-icon-badge-sm">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-icon-badge-icon" aria-hidden="true">
            <circle cx="17" cy="18" r="2" stroke="currentColor" stroke-width="1.5"></circle><circle cx="7" cy="18" r="2" stroke="currentColor" stroke-width="1.5"></circle><path d="M11 17H15M13.5 7H14.4429C15.7533 7 16.4086 7 16.9641 7.31452C17.5196 7.62904 17.89 8.20972 18.6308 9.37107C19.1502 10.1854 19.6955 10.7765 20.4622 11.3024C21.2341 11.8318 21.6012 12.0906 21.8049 12.506C22 12.9038 22 13.375 22 14.3173C22 15.5596 22 16.1808 21.651 16.5755C21.636 16.5925 21.6207 16.609 21.6049 16.625C21.2375 17 20.6594 17 19.503 17H19" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M13 7L13.9942 9.48556C14.4813 10.7034 14.7249 11.3123 15.2328 11.6561C15.7407 12 16.3965 12 17.7081 12H21" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M4.86957 17C3.51684 17 2.84048 17 2.42024 16.5607C2 16.1213 2 15.4142 2 14V7C2 5.58579 2 4.87868 2.42024 4.43934C2.84048 4 3.51684 4 4.86957 4H10.1304C11.4832 4 12.1595 4 12.5798 4.43934C13 4.87868 13 5.58579 13 7V17H8.69565" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
          </svg>
        </div>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <p class="vt-timeline-title">Shipped</p>
        <p class="vt-timeline-description">Package has been handed to the carrier</p>
        <time class="vt-timeline-time">30 min ago</time>
      </div>
    </li><li class="vt-timeline-item">
      <div class="vt-timeline-marker">
        <div class="vt-icon-badge vt-icon-badge-sm">
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-icon-badge-icon" aria-hidden="true">
            <path d="M13 2L2 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M12 3V22H7C5.11438 22 4.17157 22 3.58579 21.4142C3 20.8284 3 19.8856 3 18V7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M12 7L22 12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M10 21.9997H17C18.8856 21.9997 19.8284 21.9997 20.4142 21.4139C21 20.8281 21 19.8853 21 17.9997V11.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M18 10L18 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M7 11H8M7 15H8" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M16 14H17" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M16.5 22V18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
          </svg>
        </div>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <p class="vt-timeline-title">Out for delivery</p>
        <p class="vt-timeline-description">Your package is on its way to you</p>
        <time class="vt-timeline-time">5 min ago</time>
      </div>
    </li>
  </ol>
</div>

Alternating

Timeline with events alternating between left and right sides of the center line.

html
  1. Order placed

    Your order has been successfully placed

  2. Payment confirmed

    Payment has been processed and confirmed

  3. Shipped

    Package has been handed to the carrier

  4. Out for delivery

    Your package is on its way to you

<div class="vt-max-w-2xl vt-mx-auto">
  <ol class="vt-timeline vt-timeline-alternate">
    <li class="vt-timeline-item">
      <div class="vt-timeline-marker">
        <span class="vt-timeline-dot"></span>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <p class="vt-timeline-title">Order placed</p>
        <p class="vt-timeline-description">Your order has been successfully placed</p>
        <time class="vt-timeline-time">2 hours ago</time>
      </div>
    </li><li class="vt-timeline-item">
      <div class="vt-timeline-marker">
        <span class="vt-timeline-dot"></span>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <p class="vt-timeline-title">Payment confirmed</p>
        <p class="vt-timeline-description">Payment has been processed and confirmed</p>
        <time class="vt-timeline-time">1 hour ago</time>
      </div>
    </li><li class="vt-timeline-item">
      <div class="vt-timeline-marker">
        <span class="vt-timeline-dot"></span>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <p class="vt-timeline-title">Shipped</p>
        <p class="vt-timeline-description">Package has been handed to the carrier</p>
        <time class="vt-timeline-time">30 min ago</time>
      </div>
    </li><li class="vt-timeline-item">
      <div class="vt-timeline-marker">
        <span class="vt-timeline-dot"></span>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <p class="vt-timeline-title">Out for delivery</p>
        <p class="vt-timeline-description">Your package is on its way to you</p>
        <time class="vt-timeline-time">5 min ago</time>
      </div>
    </li>
  </ol>
</div>

With Cards

Timeline where each event is displayed inside a bordered card with optional actions.

html
  1. Order placed

    Your order #12345 has been successfully placed and is being processed.

    View order details
  2. Payment confirmed

    Payment of $49.99 has been processed via credit card ending in 4242.

    View receipt
  3. Shipped

    Package has been handed to the carrier. Tracking number: 1Z999AA10123456784.

    Track package
  4. Out for delivery

    Your package is on a delivery vehicle and will arrive today.

<div class="vt-max-w-md vt-mx-auto">
  <ol class="vt-timeline">
    <li class="vt-timeline-item">
      <div class="vt-timeline-marker">
        <span class="vt-timeline-dot"></span>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <time class="vt-timeline-time">2 hours ago</time>
        <div class="vt-card">
          <div class="vt-card-body">
            <div>
              <p class="vt-timeline-title">Order placed</p>
              <p class="vt-timeline-description">Your order #12345 has been successfully placed and is being processed.</p>
            </div>
            <a href="#" class="vt-link">View order details</a>
          </div>
        </div>
      </div>
    </li><li class="vt-timeline-item">
      <div class="vt-timeline-marker">
        <span class="vt-timeline-dot"></span>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <time class="vt-timeline-time">1 hour ago</time>
        <div class="vt-card">
          <div class="vt-card-body">
            <div>
              <p class="vt-timeline-title">Payment confirmed</p>
              <p class="vt-timeline-description">Payment of $49.99 has been processed via credit card ending in 4242.</p>
            </div>
            <a href="#" class="vt-link">View receipt</a>
          </div>
        </div>
      </div>
    </li><li class="vt-timeline-item">
      <div class="vt-timeline-marker">
        <span class="vt-timeline-dot"></span>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <time class="vt-timeline-time">30 min ago</time>
        <div class="vt-card">
          <div class="vt-card-body">
            <div>
              <p class="vt-timeline-title">Shipped</p>
              <p class="vt-timeline-description">Package has been handed to the carrier. Tracking number: 1Z999AA10123456784.</p>
            </div>
            <a href="#" class="vt-link">Track package</a>
          </div>
        </div>
      </div>
    </li><li class="vt-timeline-item">
      <div class="vt-timeline-marker">
        <span class="vt-timeline-dot"></span>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <time class="vt-timeline-time">5 min ago</time>
        <div class="vt-card">
          <div class="vt-card-body">
            <div>
              <p class="vt-timeline-title">Out for delivery</p>
              <p class="vt-timeline-description">Your package is on a delivery vehicle and will arrive today.</p>
            </div>
          </div>
        </div>
      </div>
    </li>
  </ol>
</div>

Status Colors

Timeline with different status colors indicating completed, current, and upcoming events.

html
  1. Order placed

    Your order has been successfully placed

  2. Payment confirmed

    Payment has been processed and confirmed

  3. Shipped

    Package has been handed to the carrier

  4. Out for delivery

    Your package is on its way to you

<div class="vt-max-w-md vt-mx-auto">
  <ol class="vt-timeline">
    <li class="vt-timeline-item vt-timeline-item-complete">
      <div class="vt-timeline-marker">
        <span class="vt-timeline-dot"></span>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <p class="vt-timeline-title">Order placed</p>
        <p class="vt-timeline-description">Your order has been successfully placed</p>
        <time class="vt-timeline-time">2 hours ago</time>
      </div>
    </li><li class="vt-timeline-item vt-timeline-item-complete">
      <div class="vt-timeline-marker">
        <span class="vt-timeline-dot"></span>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <p class="vt-timeline-title">Payment confirmed</p>
        <p class="vt-timeline-description">Payment has been processed and confirmed</p>
        <time class="vt-timeline-time">1 hour ago</time>
      </div>
    </li><li class="vt-timeline-item">
      <div class="vt-timeline-marker">
        <span class="vt-timeline-dot vt-timeline-dot-current"></span>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <p class="vt-timeline-title">Shipped</p>
        <p class="vt-timeline-description">Package has been handed to the carrier</p>
        <time class="vt-timeline-time">30 min ago</time>
      </div>
    </li><li class="vt-timeline-item vt-timeline-item-upcoming">
      <div class="vt-timeline-marker">
        <span class="vt-timeline-dot vt-timeline-dot-upcoming"></span>
        <span class="vt-timeline-line"></span>
      </div>
      <div class="vt-timeline-content">
        <p class="vt-timeline-title">Out for delivery</p>
        <p class="vt-timeline-description">Your package is on its way to you</p>
        <time class="vt-timeline-time">Pending</time>
      </div>
    </li>
  </ol>
</div>

Outcomes

How a step that ran ended: it failed (error color), it was stopped before it ran (muted, struck through), or it ran and found nothing (an empty ring). Say what was looked for in the description.

html
  1. Couldn’t reach the calendar

    Google Calendar did not answer in 30 seconds.

  2. Send the summary

    Stopped: the step before it failed.

  3. Search the inbox

    Nothing found for “invoice March”.

<div class="vt-max-w-md vt-mx-auto">
  <ol class="vt-timeline">
    <li class="vt-timeline-item vt-timeline-item-error">
      <div class="vt-timeline-marker"><span class="vt-timeline-dot vt-timeline-dot-error"></span><span class="vt-timeline-line"></span></div>
      <div class="vt-timeline-content"><p class="vt-timeline-title">Couldn’t reach the calendar</p><p class="vt-timeline-description">Google Calendar did not answer in 30 seconds.</p><time class="vt-timeline-time">2 min ago</time></div>
      <div class="vt-timeline-actions"><button type="button" class="vt-btn vt-btn-bordered vt-btn-sm"><span>Retry</span></button></div>
    </li>
    <li class="vt-timeline-item vt-timeline-item-cancelled">
      <div class="vt-timeline-marker"><span class="vt-timeline-dot vt-timeline-dot-cancelled"></span><span class="vt-timeline-line"></span></div>
      <div class="vt-timeline-content"><p class="vt-timeline-title">Send the summary</p><p class="vt-timeline-description">Stopped: the step before it failed.</p></div>
    </li>
    <li class="vt-timeline-item vt-timeline-item-empty">
      <div class="vt-timeline-marker"><span class="vt-timeline-dot vt-timeline-dot-empty"></span><span class="vt-timeline-line"></span></div>
      <div class="vt-timeline-content"><p class="vt-timeline-title">Search the inbox</p><p class="vt-timeline-description">Nothing found for “invoice March”.</p><time class="vt-timeline-time">5 min ago</time></div>
    </li>
  </ol>
</div>

Guidelines

  1. Order placed

  2. Shipped

Do Give every event a clear, relative timestamp.
  1. Shipped

  2. Order placed

Don't Don't list events without timestamps or a clear order.

Anatomy

ol.vt-timeline                        ← Events (vt-timeline-alternate)
└── li.vt-timeline-item               ← Event (vt-timeline-item-complete | -upcoming)
    ├── div.vt-timeline-marker
    │   ├── span.vt-timeline-dot      ← Or div.vt-icon-badge.vt-icon-badge-sm
    │   └── span.vt-timeline-line     ← Line to the next event
    └── div.vt-timeline-content
        ├── p.vt-timeline-title
        ├── p.vt-timeline-description
        └── time.vt-timeline-time

API Reference

Class Type Description
vt-timeline Base The events in order (ol), top to bottom
vt-timeline-alternate Modifier Events on both sides of a center line — odd ones on the left, right-aligned
vt-timeline-item Part One event (li) — marker and content in a row, 16px apart; the last one has no line and no bottom spacing
vt-timeline-item-complete State A finished event — its line to the next event is brand
vt-timeline-item-upcoming State An event still to come — muted title
vt-timeline-item-error State A step that failed — the title in the error color; pair with vt-timeline-dot-error
vt-timeline-item-cancelled State A step stopped before it ran — muted, struck-through title; pair with vt-timeline-dot-cancelled
vt-timeline-item-empty State A step that ran and found nothing; pair with vt-timeline-dot-empty and say what was looked for in the description
vt-timeline-marker Part The dot (or icon badge) above the line, level with the first line of the title
vt-timeline-dot Part The 12px brand dot
vt-timeline-dot-current State The event in progress — a 4px brand/0.2 ring
vt-timeline-dot-error State A failed step — the error color
vt-timeline-dot-cancelled State A cancelled step — gray
vt-timeline-dot-empty State Nothing found — an empty muted ring
vt-timeline-dot-upcoming State An event still to come — a muted dot
vt-icon-badgevt-icon-badge-sm Part An icon marker in place of the dot, tinted brand inside a timeline
vt-timeline-line Part The 2px line down to the next event
vt-timeline-content Part Title, description and time, 4px apart; 32px below it to the next event
vt-timeline-title Part Event name — Label/MD
vt-timeline-description Part Details — Body/SM, muted
vt-timeline-actions Part A step’s actions at the end of its row, after the content (Retry on a failed step), 8px apart; the Actions slot in Figma: Retry by default, Show Actions off where a step needs none
vt-timeline-time Part When (a time element) — Caption, muted

Accessibility

Feature Details
Semantics vt-timeline is an ordered list for chronological events (a ul when the order does not matter)
Time vt-timeline-time is a time element with a datetime attribute for machine-readable dates
Status Completed/current/upcoming are conveyed in text as well (a "Pending" time, a status word), not by the dot color alone
Decoration Dots, lines and icon markers are decorative; icons inside the badge are aria-hidden