Timeline

Milestones in order along a line, each with its date, a title and a line about it: down the page, alternating sides, or scrolling sideways, here six milestones year by year.

Timeline

Your headline goes here

A short line about the story so far goes here.

  1. 2021

    Milestone 1

    A short line about this milestone goes here.

  2. 2022

    Milestone 2

    A short line about this milestone goes here.

  3. 2023

    Milestone 3

    A short line about this milestone goes here.

  4. 2024

    Milestone 4

    A short line about this milestone goes here.

  5. 2025

    Milestone 5

    A short line about this milestone goes here.

  6. 2026

    Milestone 6

    A short line about this milestone goes here.

import { Timeline, type TimelineItem } from "@produkto/ui/Timeline";

const items: TimelineItem[] = [
  {
    date: "2021",
    title: "Milestone 1",
    description: "A short line about this milestone goes here.",
  },
  {
    date: "2022",
    title: "Milestone 2",
    description: "A short line about this milestone goes here.",
  },
  {
    date: "2023",
    title: "Milestone 3",
    description: "A short line about this milestone goes here.",
  },
  {
    date: "2024",
    title: "Milestone 4",
    description: "A short line about this milestone goes here.",
  },
  {
    date: "2025",
    title: "Milestone 5",
    description: "A short line about this milestone goes here.",
  },
  {
    date: "2026",
    title: "Milestone 6",
    description: "A short line about this milestone goes here.",
  },
];

const Example = () => (
  <Timeline
    description="A short line about the story so far goes here."
    eyebrow="Timeline"
    items={items}
    title="Your headline goes here"
  />
);

export default Example;

Usage

import { Timeline, type TimelineItem } from "@produkto/ui/Timeline";
const items: TimelineItem[] = [
  {
    date: "2025",
    title: "Milestone 1",
    description: "A short line about this milestone goes here.",
  },
  {
    date: "2026",
    title: "Milestone 2",
    description: "A short line about this milestone goes here.",
  },
];

<Timeline
  eyebrow="Timeline"
  title="Your headline goes here"
  description="A short line about the story so far goes here."
  items={items}
  orientation="vertical"
/>

Examples

With icons

An item's icon takes the place of its dot, on a round chip the line runs between.

Timeline

Your headline goes here

A short line about the story so far goes here.

  1. Jan 2023

    Milestone 1

    A short line about this milestone goes here.

  2. Jun 2024

    Milestone 2

    A short line about this milestone goes here.

  3. Mar 2025

    Milestone 3

    A short line about this milestone goes here.

  4. Sep 2026

    Milestone 4

    A short line about this milestone goes here.

import { Timeline, type TimelineItem } from "@produkto/ui/Timeline";
import {
  Award01Icon,
  Flag02Icon,
  Rocket01Icon,
  UserGroupIcon,
} from "@hugeicons/core-free-icons";
import { Icon } from "@produkto/ui/Icon";

const items: TimelineItem[] = [
  {
    date: "Jan 2023",
    title: "Milestone 1",
    description: "A short line about this milestone goes here.",
    icon: <Icon icon={Flag02Icon} />,
  },
  {
    date: "Jun 2024",
    title: "Milestone 2",
    description: "A short line about this milestone goes here.",
    icon: <Icon icon={Rocket01Icon} />,
  },
  {
    date: "Mar 2025",
    title: "Milestone 3",
    description: "A short line about this milestone goes here.",
    icon: <Icon icon={UserGroupIcon} />,
  },
  {
    date: "Sep 2026",
    title: "Milestone 4",
    description: "A short line about this milestone goes here.",
    icon: <Icon icon={Award01Icon} />,
  },
];

const Example = () => (
  <Timeline
    description="A short line about the story so far goes here."
    eyebrow="Timeline"
    items={items}
    title="Your headline goes here"
  />
);

export default Example;

Years, both sides

alternate sets the milestones on either side of a centred line from a wide screen, each date across the line from its text.

Timeline

Your headline goes here

A short line about the story so far goes here.

  1. Jan 2023

    Milestone 1

    A short line about this milestone goes here.

  2. Jun 2024

    Milestone 2

    A short line about this milestone goes here.

  3. Mar 2025

    Milestone 3

    A short line about this milestone goes here.

  4. Sep 2026

    Milestone 4

    A short line about this milestone goes here.

import { Timeline, type TimelineItem } from "@produkto/ui/Timeline";
import {
  Award01Icon,
  Flag02Icon,
  Rocket01Icon,
  UserGroupIcon,
} from "@hugeicons/core-free-icons";
import { Icon } from "@produkto/ui/Icon";

const items: TimelineItem[] = [
  {
    date: "Jan 2023",
    title: "Milestone 1",
    description: "A short line about this milestone goes here.",
    icon: <Icon icon={Flag02Icon} />,
  },
  {
    date: "Jun 2024",
    title: "Milestone 2",
    description: "A short line about this milestone goes here.",
    icon: <Icon icon={Rocket01Icon} />,
  },
  {
    date: "Mar 2025",
    title: "Milestone 3",
    description: "A short line about this milestone goes here.",
    icon: <Icon icon={UserGroupIcon} />,
  },
  {
    date: "Sep 2026",
    title: "Milestone 4",
    description: "A short line about this milestone goes here.",
    icon: <Icon icon={Award01Icon} />,
  },
];

const Example = () => (
  <Timeline
    align="center"
    alternate
    description="A short line about the story so far goes here."
    eyebrow="Timeline"
    items={items}
    title="Your headline goes here"
  />
);

export default Example;

Years across

orientation="horizontal" runs the line across the page; the list scrolls sideways when the milestones outgrow it, by touch, wheel or the arrow keys.

Timeline

Your headline goes here

A short line about the story so far goes here.

  1. 2021

    Milestone 1

    A short line about this milestone goes here.

  2. 2022

    Milestone 2

    A short line about this milestone goes here.

  3. 2023

    Milestone 3

    A short line about this milestone goes here.

  4. 2024

    Milestone 4

    A short line about this milestone goes here.

  5. 2025

    Milestone 5

    A short line about this milestone goes here.

  6. 2026

    Milestone 6

    A short line about this milestone goes here.

import { Timeline, type TimelineItem } from "@produkto/ui/Timeline";

const items: TimelineItem[] = [
  {
    date: "2021",
    title: "Milestone 1",
    description: "A short line about this milestone goes here.",
  },
  {
    date: "2022",
    title: "Milestone 2",
    description: "A short line about this milestone goes here.",
  },
  {
    date: "2023",
    title: "Milestone 3",
    description: "A short line about this milestone goes here.",
  },
  {
    date: "2024",
    title: "Milestone 4",
    description: "A short line about this milestone goes here.",
  },
  {
    date: "2025",
    title: "Milestone 5",
    description: "A short line about this milestone goes here.",
  },
  {
    date: "2026",
    title: "Milestone 6",
    description: "A short line about this milestone goes here.",
  },
];

const Example = () => (
  <Timeline
    description="A short line about the story so far goes here."
    eyebrow="Timeline"
    items={items}
    orientation="horizontal"
    title="Your headline goes here"
  />
);

export default Example;

Stage

view="stage" sets the dates as tabs over one card that shows the open one with its picture: the line fills as it moves on, it stops for good once someone takes over, and an item with no media keeps an empty striped space for its picture.

import { Timeline, type TimelineItem } from "@produkto/ui/Timeline";

const items: TimelineItem[] = [
  {
    date: "2024",
    summary: "Milestone 1",
    title: "Milestone 1",
    description: "A short line about this milestone goes here.",
  },
  {
    date: "2025",
    summary: "Milestone 2",
    title: "Milestone 2",
    description: "A short line about this milestone goes here.",
    stat: { value: "100", label: "a number worth showing" },
  },
  {
    date: "2026",
    summary: "Milestone 3",
    title: "Milestone 3",
    description: "A short line about this milestone goes here.",
    note: "A small note about the picture goes here.",
  },
];

const Example = () => <Timeline view="stage" interval={8000} items={items} />;

export default Example;

Centred with an action

align="center" centres the heading, the list and the actions under it, here on the muted surface.

Timeline

Your headline goes here

A short line about the story so far goes here.

  1. 2024

    Milestone 1

    A short line about this milestone goes here.

  2. 2025

    Milestone 2

    A short line about this milestone goes here.

  3. 2026

    Milestone 3

    A short line about this milestone goes here.

import type { BlockAction } from "@produkto/ui/Section";
import { Timeline, type TimelineItem } from "@produkto/ui/Timeline";

const items: TimelineItem[] = [
  {
    date: "2024",
    title: "Milestone 1",
    description: "A short line about this milestone goes here.",
  },
  {
    date: "2025",
    title: "Milestone 2",
    description: "A short line about this milestone goes here.",
  },
  {
    date: "2026",
    title: "Milestone 3",
    description: "A short line about this milestone goes here.",
  },
];

const actions: BlockAction[] = [
  { label: "Primary action", link: "#" },
  { label: "Secondary action", link: "#" },
];

const Example = () => (
  <Timeline
    actions={actions}
    align="center"
    description="A short line about the story so far goes here."
    eyebrow="Timeline"
    items={items}
    muted
    title="Your headline goes here"
  />
);

export default Example;

API Reference

Timeline

TimelineProps · blocks/Timeline/Timeline.types.ts
PropTypeDefault
itemsTimelineItem[]-
viewTimelineView"list" | "stage""list"
intervalnumber-
orientationTimelineOrientation"vertical" | "horizontal""vertical"
alternatebooleanfalse
actionsBlockAction[]-
idstring-
eyebrowstring-
titleReactNode-
descriptionReactNode-
alignSectionAlign"start" | "center" | "end""start"
mutedbooleanfalse
classNamestring-

TimelineItem

used by items
PropTypeDefault
daterequiredstring-
titlerequiredstring-
descriptionstring-
iconReactNode-
summarystring-
statTimelineStat-
notestring-
mediaReactNode-

BlockAction

used by actions
PropTypeDefault
appearanceButtonAppearance"solid" | "soft" | "outline" | "transparent"-
toneButtonTone"neutral" | "accent" | "destructive" | "success" | "warning" | "info"-
iconReactNode-
iconOnlyboolean-
borderRadiusBlockActionBorderRadius"none" | "xs" | "sm" | "base" | "lg" | "xl" | "full"-
labelrequiredstring-
linkrequiredstring-

TimelineStat

used by its parts
PropTypeDefault
valuerequiredstring-
labelrequiredstring-