Skip to content

Timeline

What happened, in order: deploys, payments, changes. The newest first, each with how long ago and its exact date.

import { Timeline, TimelineSkeleton } from '@sypnia/ui/react'

On this page
  1. Deploys of a project
  2. Skeleton
  3. When to use it
  4. For everyone
  5. Props

Deploys of a project

Four moments, three tones.

  1. Deploy 42 is live

    storefront.sypnia.app now serves the new checkout.
  2. Build 42 failed, then passed

    A test was flaky; it passed on the second try.
  3. Deploy 41 rolled back

    Errors went above 2 %. The previous version came back in 40 s.
  4. Project created

Code
import { Timeline } from '@sypnia/ui/react';

// Fixed moments, so the page is the same on the server and in the browser.
const h = (n: number) => Date.UTC(2026, 10, 17, 12, 0) - n * 3600 * 1000;
// The newest first. Each moment says how long ago, with the exact date on hover.
export default function Deploys() {
  return (
    <Timeline label="Deploys of storefront" items={[
      { id: 4, title: 'Deploy 42 is live', time: h(0.4), tone: 'ok', icon: 'check', description: 'storefront.sypnia.app now serves the new checkout.' },
      { id: 3, title: 'Build 42 failed, then passed', time: h(1.2), tone: 'warn', description: 'A test was flaky; it passed on the second try.' },
      { id: 2, title: 'Deploy 41 rolled back', time: h(26), tone: 'fail', icon: 'error', description: 'Errors went above 2 %. The previous version came back in 40 s.' },
      { id: 1, title: 'Project created', time: h(24 * 40) },
    ]} />
  );
}

Skeleton

The real piece and its skeleton: the same box, so nothing moves when the data arrives.

  1. Laura invited Diego

  2. Backup finished

Code
import { Timeline, TimelineSkeleton } from '@sypnia/ui/react';

export default function Skeleton() {
  return (
    <div className="sy-grid" style={{ ['--min' as string]: '16rem' }}>
      <Timeline label="Activity" items={[{ id: 1, title: 'Laura invited Diego', time: '2026-11-17T11:50:00Z' }, { id: 2, title: 'Backup finished', time: '2026-11-17T10:00:00Z', tone: 'ok' }]} />
      <TimelineSkeleton items={2} />
    </div>
  );
}

When to use it

Use it when

  • The history of one thing.
  • Give each item a tone: it also changes its mark, and an icon says it in another way.

Do not use it when

  • Many events of many things to search: LogViewer or DataTable.

For everyone

  • It is an ordered list with a name. Times are time elements with the exact date.
  • Tone is never the only sign: the title says what happened.

Props

TimelineTypeDefault
itemsrequired TimelineItem[]
labelrequired string
TimelineSkeletonTypeDefault
items number 3
  1. Deploys of a project
  2. Skeleton
  3. When to use it
  4. For everyone
  5. Props

    Search pages, sections and terms