Skip to main content
WireKit
Copy for LLM

Timeline

A vertical activity feed for displaying chronological events — deployments, audit logs, status updates, user activity. Each item has a colored dot indicator, optional icon, timestamp, and content area.

Basic Usage

Simple timeline
  1. Deployed v1.2.0
    Release notes linked below.
  2. Tests passed
    All 142 tests green.
  3. Branch created
    feature/new-dashboard

With Variant Colors

Use the variant prop on individual items to signal different event types:

Colored variants
  1. Deployment successful
  2. Build warning: deprecated API
  3. Pipeline failed
    Exit code 1 on test step.
  4. Commit pushed

With Icons

Pass a semantic icon alias to each item:

Timeline with icons
  1. Deployed
  2. Warning issued
  3. Build failed

Continuation Lines

Use before and after to show dashed fade-in / fade-out lines, indicating that the visible timeline is part of a larger history. The lines use a CSS mask-image gradient to fade gracefully.

Timeline with continuation lines
  1. Deployed v1.2.0
    Release notes linked below.
  2. Tests passed
    All 142 tests green.
  3. Branch created
    feature/new-dashboard
  • before — dashed line that fades in from the top, indicating earlier events exist above
  • after — dashed line that fades out at the bottom, indicating later events exist below

Layout Variants

Default (left-aligned)

The default layout places all items on the left with a vertical connector line.

Compact

Tighter spacing for dense audit logs or activity feeds:

Compact timeline
  1. Login
  2. Updated profile
  3. Logout

Timeline Props

Prop Type Default Description
variant string 'default' Layout variant: 'default', 'centered', 'compact'
before bool false Show a dashed fade-in line above the first item (indicates earlier events)
after bool false Show a dashed fade-out line below the last item (indicates later events)
scope string|null null Scoped personalization key

Timeline Item Props

Prop Type Default Description
time string|null null Timestamp text (e.g. '2 hours ago', '09:15')
icon string|null null Semantic icon alias for the dot indicator
variant string 'default' Dot color variant: 'default' (accent), 'success', 'warning', 'danger'
intent string|null null Canonical name for the dot color, accepting the same values as variant. Falls back to variant when omitted, and wins over it when both are given.
scope string|null null Scoped personalization key

Slots

Slot Purpose
title Event headline (rendered in heading weight)
default Event body/description text

Accessibility

  • Uses semantic <ol> (ordered list) — screen readers announce "list of N items"
  • Each event is an <li> — natural reading order matches chronological order
  • Dot indicators and connector lines are aria-hidden="true" — decorative only
  • Timestamp uses <time> element for machine-readable dates
  • All text content is accessible without relying on visual indicators

Keyboard Interaction

This component is purely presentational and does not respond to keyboard input.

Pitfalls

  • Don't put more than 50 events in one timeline. Cognitive overload + DOM weight. Paginate or filter.

Design Tokens

Element Token
Font family --font-wk-sans
Text color --color-wk-text
Time text color --color-wk-text-muted
Connector line --color-wk-border
Default dot --color-wk-accent
Success dot --color-wk-success
Warning dot --color-wk-warning
Danger dot --color-wk-danger
Heading weight --font-wk-heading-weight
Spacing gap --padding-wk-x-md
Dot size --size-wk-xs (fallback: 1.5rem)

Customization

Override defaults in config/wirekit.php:

'components' => [
    'timeline' => [],
],

Usage & Conventions

Prop conventions — this component uses one or more of the shared semantic prop names (intent / variant / tone / surface). See Prop naming conventions for the canonical vocabulary, alias matrix, and decision tree.

Looking for a horizontal timeline? Reach for Stepper — it lays milestones out along a horizontal (or vertical) axis with connectors and a current-step marker, which is exactly the horizontal-timeline pattern. Timeline is purpose-built for vertical chronological feeds.

Further Reading

Was this page helpful?

Thanks — that helps.

Voting requires cookies or local storage. What we store