Introducing Magic UI Pro - 50+ blocks and templates to build beautiful landing pages in minutes.

19.0k
173

Arc Timeline

PreviousNext

A curved timeline that elegantly visualizes key milestones, perfect for Web3 and AI roadmaps.

Installation

pnpm dlx shadcn@latest add @magicui/arc-timeline

Usage

import { ArcTimeline } from "@/components/magicui/arc-timeline";
const data = [
  {
    time: "2025",
    steps: [
      { icon: <span>🚀</span>, content: "Launched v1" },
      { icon: <span>✨</span>, content: "Improved UX" },
    ],
  },
  {
    time: "2026",
    steps: [{ icon: <span>📈</span>, content: "Growth" }],
  },
];
 
<ArcTimeline data={data} />;

Props

PropTypeDefaultDescription
classNamestring-The class name to apply to the component.
dataArcTimelineItem[]-The data of the arc timeline.
arcConfig.circleWidthnumber5000The width of the circle.
arcConfig.angleBetweenMinorStepsnumber0.35The angle between minor steps.
arcConfig.lineCountFillBetweenStepsnumber10The number of lines to fill between steps.
arcConfig.boundaryPlaceholderLinesCountnumber50The number of lines to fill in before the first step and after the last step
defaultActiveStep.timestringdata[0].timeThe time of the default active step.
defaultActiveStep.stepIndexnumber0The index of the default active step.

CSS Variables

VariableDefaultDescription
--step-line-active-colorlight: #888888, dark: #9780ffThe color of the active step line.
--step-line-inactive-colorlight: #b1b1b1, dark: #737373The color of the inactive step line.
--placeholder-line-colorlight: #a1a1a1, dark: #737373The color of the placeholder line.
--time-active-colorlight: #555555, dark: #d4d4d4The color of the active time.
--time-inactive-colorlight: #a3a3a3, dark: #a3a3a3The color of the inactive time.
--description-colorlight: #555555, dark: #d4d4d4The color of the description.
--icon-active-colorlight: #555555, dark: #d4d4d4The color of the active icon.
--icon-inactive-colorlight: #a3a3a3, dark: #a3a3a3The color of the inactive icon.