WlTimeline

A vertical list of dated events in application-defined order.
Components / Data v1.4.0

Basic example

Pass an ISO date and a readable date label. The application chooses the order and supplies any details needed to understand an event.

  1. Request received
  2. Request approved

    The team can start preparing the delivery.

Full example
<WlTimeline :items="items" >
  <template #marker="{ item }">
    <WlIcon :name="item.key === 'approved' ? 'check' : 'file'" :size="16" />
  </template>
  <template #empty>
    <WlEmpty title="No events yet" />
  </template>
</WlTimeline>

Example data

  1. Request received
  2. Request approved

    The team can start preparing the delivery.

Full example
<WlTimeline :items="items" >
  <template #marker="{ item }">
    <WlIcon :name="item.key === 'approved' ? 'check' : 'file'" :size="16" />
  </template>
  <template #empty>
    <WlEmpty title="No events yet" />
  </template>
</WlTimeline>

Order progress

Use the content slot for a status badge. The timeline keeps responsibility for rendering the date.

  1. Request received
  2. Request approved

    The team can start preparing the delivery.

  3. Send the packagePlanned
Full example
<script setup lang="ts">
import { WlPill, WlTimeline } from "legato-ui";
import { computed } from "vue";

const stages = computed(() => [
  { key: "received", title: "Request received", datetime: "2026-11-28", dateLabel: "28 November" },
  { key: "approved", title: "Request approved", datetime: "2026-11-29", dateLabel: "29 November", description: "The team can start preparing the delivery." },
  { key: "delivery", title: "Send the package", datetime: "2026-11-30", dateLabel: "30 November" }
]);
</script>

<template>
  <WlTimeline :items="stages">
    <template #content="{ item }">
      <div class="wl-stack" data-space="xs">
        <div class="wl-inline" data-space="sm">
          <strong>{{ item.title }}</strong>
          <WlPill v-if="item.key === 'delivery'" tone="info" label="Planned" />
        </div>
        <p v-if="item.description" class="wl-text-small wl-text-muted">{{ item.description }}</p>
      </div>
    </template>
  </WlTimeline>
</template>