Skip to content
Vertical Jump Designs-uiFront-End Studio
Get Pro

v3.9 is out.

Data display

Timeline

Free18.1 KB gzipped

A vertical or horizontal sequence of events or steps, rendered as an ordered list. Items show a marker on a connector line plus a title, time, meta, and description. Use status for progress tracking (complete, current, upcoming, error): each status has its own marker shape and hidden status text, so it never relies on color alone.

Accessibility: WCAG 2.2 AA · No A or AA violations in light or dark mode · No keyboard interaction of its own · Full report

Import

tsx
import { Timeline } from "@vjdesigns/vjdesigns-ui";

Importing only Timeline adds about 18.1 KB of minified, gzipped JavaScript to your app (React not included). The stylesheet is shared by every component and loaded once: 75.1 KB gzipped.

Examples

Order tracking

status marks progress with a shape and a screen-reader label, not just color.

  1. Completed:
    Order placed
  2. Completed:
    Shipped
    UPS · 1Z999AA10123456784
  3. Current step:
    Out for delivery
    Arriving by 8 PM today.
  4. Upcoming:
    Delivered
tsx
import { Timeline } from "@vjdesigns/vjdesigns-ui";

export function OrderTracking() {
  return (
    <Timeline style={{ width: "100%", maxWidth: "28rem" }}>
      <Timeline.Item status="complete" title="Order placed" time="Oct 10, 9:24 AM" dateTime="2026-10-10T09:24" />
      <Timeline.Item status="complete" title="Shipped" description="UPS · 1Z999AA10123456784" time="Oct 11" dateTime="2026-10-11" />
      <Timeline.Item status="current" title="Out for delivery" description="Arriving by 8 PM today." time="Oct 14" dateTime="2026-10-14" />
      <Timeline.Item status="upcoming" title="Delivered" />
    </Timeline>
  );
}

Alternating

card puts each item's content on a surface; align="alternate" zigzags items on wide screens.

  1. Kickoff
    Jan
    Goals and scope agreed.
  2. Beta
    Mar
    Shared with 200 testers.
  3. Launch
    May
    Live for everyone.
tsx
import { Timeline } from "@vjdesigns/vjdesigns-ui";

export function Alternating() {
  return (
    <Timeline align="alternate" style={{ width: "100%" }}>
      <Timeline.Item card title="Kickoff" description="Goals and scope agreed." time="Jan" />
      <Timeline.Item card title="Beta" description="Shared with 200 testers." time="Mar" tone="accent" />
      <Timeline.Item card title="Launch" description="Live for everyone." time="May" tone="success" />
    </Timeline>
  );
}

Accessibility

Each item's status is announced ("Completed", "Current step", "Error") and shown by the marker's shape as well as its color. statusLabel rewords one item's status, and time with dateTime renders a machine-readable <time>.

  1. Completed:
    Order placed
  2. Needs your attention:
    Payment declined
    Update your card to continue.
  3. Upcoming:
    Shipping
tsx
import { Timeline } from "@vjdesigns/vjdesigns-ui";

export function Accessibility() {
  return (
    <Timeline style={{ width: "100%", maxWidth: "28rem" }}>
      <Timeline.Item status="complete" title="Order placed" time="Oct 10" dateTime="2026-10-10" />
      <Timeline.Item status="error" statusLabel="Needs your attention" title="Payment declined" description="Update your card to continue." time="Oct 11" dateTime="2026-10-11" />
      <Timeline.Item status="upcoming" title="Shipping" />
    </Timeline>
  );
}

Translated

The status words read by screen readers come from the locale (French here). Titles and dates are your own text.

  1. Terminé:
    Commande passée
  2. Étape en cours:
    En cours de livraison
  3. À venir:
    Livrée
tsx
import { Timeline, LocaleProvider } from "@vjdesigns/vjdesigns-ui";
import fr from "@vjdesigns/vjdesigns-ui/locales/fr";

export function Translated() {
  return (
    <LocaleProvider locale="fr" messages={fr}>
      <Timeline style={{ width: "100%", maxWidth: "28rem" }}>
        <Timeline.Item status="complete" title="Commande passée" time="10 oct." dateTime="2026-10-10" />
        <Timeline.Item status="current" title="En cours de livraison" time="14 oct." dateTime="2026-10-14" />
        <Timeline.Item status="upcoming" title="Livrée" />
      </Timeline>
    </LocaleProvider>
  );
}

Right to left

The first example again, inside a right-to-left LocaleProvider (Arabic). Layout, spacing and arrow icons mirror, and the components' built-in text is translated. The example's own text stays in English.

Order tracking

  1. مكتمل:
    Order placed
  2. مكتمل:
    Shipped
    UPS · 1Z999AA10123456784
  3. الخطوة الحالية:
    Out for delivery
    Arriving by 8 PM today.
  4. قادم:
    Delivered
tsx
import { LocaleProvider } from "@vjdesigns/vjdesigns-ui";
import ar from "@vjdesigns/vjdesigns-ui/locales/ar";

// OrderTracking is the "Order tracking" example above.
<LocaleProvider locale="ar" messages={ar}>
  <OrderTracking />
</LocaleProvider>

API reference

Timeline

Timeline props
PropTypeDefault
orientation

Direction of the line. Use horizontal for short milestone tracks; it scrolls sideways (and becomes keyboard scrollable) when it overflows.

"horizontal""vertical""vertical"
align

Which side of the line the content sits on.

"start""alternate""end""start"
size

Marker size, spacing, and type size.

"sm""md""lg""md"
variant

Connector line style.

"solid""dashed""solid"
statusLabels

Overrides the screen-reader text for statuses ("Completed", "Current step", "Upcoming", "Error").

TimelineStatusLabels—
scrollLabel

Accessible name for the horizontal scroll region, used only when a horizontal timeline overflows and becomes focusable. Falls back to aria-label, then "Timeline".

string—
children

Timeline.Item elements.

ReactNode—

Also accepts native <ol> attributes, plus className, style and ref.

Timeline.Item

One event or step on the timeline.

Timeline.Item props
PropTypeDefault
title

Item heading, in bold display type.

ReactNode—
description

Supporting text under the title.

ReactNode—
time

When it happened, e.g. "Oct 12" or "2h ago". Rendered in a <time> element when dateTime is set.

ReactNode—
dateTime

Machine-readable date for time (e.g. "2026-10-12" or "2026-10-12T19:30").

string—
meta

Extra muted detail next to the time (e.g. a location or author).

ReactNode—
icon

Icon shown in a tone-tinted circle instead of the dot. Decorative: the title must carry the meaning. Overrides the status marker shape (the status is still announced), so prefer it for items without a status.

ReactNode—
marker

Fully custom marker, such as an Avatar (pass decorative when the name is visible in the content). Overrides icon and the status shape.

ReactNode—
tone

Color of the marker and the connector segment after it.

"neutral""primary""accent""success""warning""danger""info""danger" when `status="error"`, otherwise "primary"
status

Progress status. complete shows a filled check, current a pulsing ring (and sets aria-current="step"), upcoming a hollow circle, and error a filled cross. Each is also announced as hidden text.

"complete""current""upcoming""error"—
statusLabel

Overrides the screen-reader status text for this item.

string—
card

Render the content inside a rounded outline card (for activity feeds).

booleanfalse
children

Extra content below the description (links, badges, a stat line).

ReactNode—

Also accepts native <li> attributes, plus className, style and ref.

See what changed in each version in the Changelog.

Accessibility report

Timeline targets WCAG 2.2 AA. Below: a live axe-core audit of this page's examples, Lighthouse scores for the page in both modes, the accessibility behavior built into the component, and the checks only a person can do.

axe-core audit (live)

Running accessibility audit

Checking the examples above…

Lighthouse audit

Light mode

Score 100

35 passed · 0 failed · 30 not applicable · 10 to check by hand

Dark mode

Score 100

35 passed · 0 failed · 30 not applicable · 10 to check by hand

Lighthouse 13.5.0 audits the whole docs page (header and sidebar included), not just the examples, in English. Last run 11/27/2026. Some failed audits carry no weight in the score, so a page can score 100 and still list one.

Built-in behavior

Keyboard

Not focusable, so there's no keyboard interaction of its own.

Roles and states

Roles and states
ElementRoleStates and properties
Timelinelist—
Itemlistitemaria-current="step" on the current item

Manual checks

Automated tools find roughly a third of accessibility issues. Test these in your app, with your content.

Manual accessibility checks
CheckWhat to testWCAG 2.2
KeyboardEvery action works with Tab, Shift+Tab, Enter, Space and the arrow keys, and focus never gets stuck.2.1.1 (A), 2.1.2 (A)
FocusFocus moves in a logical order, is always visible, and isn't hidden behind sticky headers.2.4.3 (A), 2.4.7 (AA), 2.4.11 (AA), 2.4.13 (AAA)
Screen readersNames, roles and states are announced correctly, and status changes are announced without moving focus.1.3.1 (A), 4.1.2 (A), 4.1.3 (AA)
ColorMeaning never depends on color alone; your own colors meet contrast in both modes.1.4.1 (A), 1.4.3 (AA), 1.4.11 (AA), 1.4.6 (AAA)
Zoom and reflowAt 200% text size and at 320px wide (400% zoom), nothing is cut off and no sideways scrolling is needed.1.4.4 (AA), 1.4.10 (AA), 1.4.12 (AA)
Pointer targetsClick and tap targets are at least 24×24px (44×44px for AAA), or spaced so they don't overlap.2.5.8 (AA), 2.5.5 (AAA)
MotionAnimations respect the reduced-motion setting.2.3.3 (AAA)