Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: remove arc timeline component

Dillion Verma4f0865f9f741
diff --git a/apps/www/content/docs/components/arc-timeline.mdx b/apps/www/content/docs/components/arc-timeline.mdx
deleted file mode 100644
index ade83a27..00000000
--- a/apps/www/content/docs/components/arc-timeline.mdx
+++ /dev/null
@@ -1,89 +0,0 @@
----
-title: Arc Timeline
-date: 2025-02-13
-description: A curved timeline that elegantly visualizes key milestones, perfect for Web3 and AI roadmaps.
-author: hexi
-published: true
----
-
-<ComponentPreview name="arc-timeline-demo" />
-
-## Installation
-
-<Tabs defaultValue="cli">
-
-<TabsList>
- <TabsTrigger value="cli">CLI</TabsTrigger>
- <TabsTrigger value="manual">Manual</TabsTrigger>
-</TabsList>
-<TabsContent value="cli">
-
-```bash
-npx shadcn@latest add @magicui/arc-timeline
-```
-
-</TabsContent>
-
-<TabsContent value="manual">
-
-<Steps>
-
-<Step>Copy and paste the following code into your project.</Step>
-
-<ComponentSource name="arc-timeline" />
-
-</Steps>
-
-</TabsContent>
-
-</Tabs>
-
-## Usage
-
-```tsx showLineNumbers
-import { ArcTimeline } from "@/components/magicui/arc-timeline"
-```
-
-```tsx showLineNumbers
-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
-
-| Prop | Type | Default | Description |
-| ----------------------------------------- | ------------------- | -------------- | ---------------------------------------------------------------------------- |
-| `className` | `string` | `-` | The class name to apply to the component. |
-| `data` | `ArcTimelineItem[]` | `-` | The data of the arc timeline. |
-| `arcConfig.circleWidth` | `number` | `5000` | The width of the circle. |
-| `arcConfig.angleBetweenMinorSteps` | `number` | `0.35` | The angle between minor steps. |
-| `arcConfig.lineCountFillBetweenSteps` | `number` | `10` | The number of lines to fill between steps. |
-| `arcConfig.boundaryPlaceholderLinesCount` | `number` | `50` | The number of lines to fill in before the first step and after the last step |
-| `defaultActiveStep.time` | `string` | `data[0].time` | The time of the default active step. |
-| `defaultActiveStep.stepIndex` | `number` | `0` | The index of the default active step. |
-
-## CSS Variables
-
-| Variable | Default | Description |
-| ---------------------------- | --------------------------------- | ------------------------------------ |
-| `--step-line-active-color` | light: `#888888`, dark: `#9780ff` | The color of the active step line. |
-| `--step-line-inactive-color` | light: `#b1b1b1`, dark: `#737373` | The color of the inactive step line. |
-| `--placeholder-line-color` | light: `#a1a1a1`, dark: `#737373` | The color of the placeholder line. |
-| `--time-active-color` | light: `#555555`, dark: `#d4d4d4` | The color of the active time. |
-| `--time-inactive-color` | light: `#a3a3a3`, dark: `#a3a3a3` | The color of the inactive time. |
-| `--description-color` | light: `#555555`, dark: `#d4d4d4` | The color of the description. |
-| `--icon-active-color` | light: `#555555`, dark: `#d4d4d4` | The color of the active icon. |
-| `--icon-inactive-color` | light: `#a3a3a3`, dark: `#a3a3a3` | The color of the inactive icon. |
diff --git a/apps/www/public/llms-full.txt b/apps/www/public/llms-full.txt
index 400e698f..1c6ce704 100644
--- a/apps/www/public/llms-full.txt
+++ b/apps/www/public/llms-full.txt
@@ -129,18 +129,6 @@ Title: Animated Theme Toggler Demo
-===== COMPONENT: arc-timeline =====
-Title: Arc Timeline
-Description: A curved timeline that elegantly visualizes key milestones, perfect for Web3 and AI roadmaps.
-
-
-
-===== EXAMPLE: arc-timeline-demo =====
-Title: Arc Timeline Demo
-
-
-
-
===== COMPONENT: aurora-text =====
Title: Aurora Text
Description: A beautiful aurora text effect
diff --git a/apps/www/public/llms.txt b/apps/www/public/llms.txt
index 020d58e6..029d8895 100644
--- a/apps/www/public/llms.txt
+++ b/apps/www/public/llms.txt
@@ -14,7 +14,6 @@ This file provides LLM-friendly entry points to documentation and examples.
- [Animated List](https://magicui.design/docs/components/animated-list): A list that animates each item in sequence with a delay. Used to showcase notifications or events on your landing page.
- [Animated Shiny Text](https://magicui.design/docs/components/animated-shiny-text): A light glare effect which pans across text making it appear as if it is shimmering.
- [Theme Toggler](https://magicui.design/docs/components/animated-theme-toggler): A component for theme changing animation.
-- [Arc Timeline](https://magicui.design/docs/components/arc-timeline): A curved timeline that elegantly visualizes key milestones, perfect for Web3 and AI roadmaps.
- [Aurora Text](https://magicui.design/docs/components/aurora-text): A beautiful aurora text effect
- [Avatar Circles](https://magicui.design/docs/components/avatar-circles): Overlapping circles of avatars.
- [Bento Grid](https://magicui.design/docs/components/bento-grid): Bento grid is a layout used to showcase the features of a product in a simple and elegant way.
@@ -199,7 +198,6 @@ This file provides LLM-friendly entry points to documentation and examples.
- [Video Text Demo](https://github.com/magicuidesign/magicui/blob/main/example/video-text-demo.tsx): Example usage
- [Pixel Image Demo](https://github.com/magicuidesign/magicui/blob/main/example/pixel-image-demo.tsx): Example usage
- [Highlighter Demo](https://github.com/magicuidesign/magicui/blob/main/example/highlighter-demo.tsx): Example usage
-- [Arc Timeline Demo](https://github.com/magicuidesign/magicui/blob/main/example/arc-timeline-demo.tsx): Example usage
- [Animated Theme Toggler Demo](https://github.com/magicuidesign/magicui/blob/main/example/animated-theme-toggler-demo.tsx): Example usage
- [light-rays-demo](https://github.com/magicuidesign/magicui/blob/main/example/light-rays-demo.tsx): Example usage
diff --git a/apps/www/public/r/arc-timeline-demo.json b/apps/www/public/r/arc-timeline-demo.json
deleted file mode 100644
index 9732d967..00000000
--- a/apps/www/public/r/arc-timeline-demo.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
- "name": "arc-timeline-demo",
- "type": "registry:example",
- "title": "Arc Timeline Demo",
- "description": "Example showing an arc timeline component.",
- "registryDependencies": [
- "@magicui/arc-timeline"
- ],
- "files": [
- {
- "path": "registry/example/arc-timeline-demo.tsx",
- "content": "import {\n CubeIcon,\n GearIcon,\n GlobeIcon,\n LightningBoltIcon,\n LockClosedIcon,\n MagicWandIcon,\n RocketIcon,\n StarIcon,\n} from \"@radix-ui/react-icons\"\n\nimport { ArcTimeline, ArcTimelineItem } from \"@/registry/magicui/arc-timeline\"\n\nexport default function ArcTimelineDemo() {\n return (\n <ArcTimeline\n // className={cn(\n // \"[--step-line-active-color:#888888] dark:[--step-line-active-color:#9780ff]\",\n // \"[--step-line-inactive-color:#b1b1b1] dark:[--step-line-inactive-color:#737373]\",\n // \"[--placeholder-line-color:#a1a1a1] dark:[--placeholder-line-color:#737373]\",\n // \"[--icon-active-color:#555555] dark:[--icon-active-color:#d4d4d4]\",\n // \"[--icon-inactive-color:#a3a3a3] dark:[--icon-inactive-color:#a3a3a3]\",\n // \"[--time-active-color:#555555] dark:[--time-active-color:#d4d4d4]\",\n // \"[--time-inactive-color:#a3a3a3] dark:[--time-inactive-color:#a3a3a3]\",\n // \"[--description-color:#555555] dark:[--description-color:#d4d4d4]\"\n // )}\n data={TIMELINE}\n defaultActiveStep={{ time: \"2025 Q2\", stepIndex: 0 }}\n arcConfig={{\n circleWidth: 4500,\n angleBetweenMinorSteps: 0.4,\n lineCountFillBetweenSteps: 8,\n boundaryPlaceholderLinesCount: 50,\n }}\n />\n )\n}\n\nconst TIMELINE: ArcTimelineItem[] = [\n {\n time: \"2022\",\n steps: [\n {\n icon: <RocketIcon width={20} height={20} />,\n content:\n \"Founded Visionary Tech, a cutting-edge AI development company.\",\n },\n {\n icon: <CubeIcon width={20} height={20} />,\n content:\n \"Launched first AI-powered mobile app for personalized recommendations.\",\n },\n ],\n },\n {\n time: \"2023\",\n steps: [\n {\n icon: <LockClosedIcon width={20} height={20} />,\n content: \"Raised $3M seed round at a $20M valuation.\",\n },\n {\n icon: <GlobeIcon width={20} height={20} />,\n content:\n \"Expanded to global markets with localized app versions in 5 countries.\",\n },\n {\n icon: <GearIcon width={20} height={20} />,\n content:\n \"Implemented enhanced machine learning algorithms for data prediction.\",\n },\n ],\n },\n {\n time: \"2024\",\n steps: [\n {\n icon: <RocketIcon width={20} height={20} />,\n content:\n \"Introduced AI-powered virtual assistant for customer service.\",\n },\n {\n icon: <GlobeIcon width={20} height={20} />,\n content:\n \"Partnered with several tech giants to enhance app capabilities.\",\n },\n {\n icon: <MagicWandIcon width={20} height={20} />,\n content:\n \"Launched AR-based features for more immersive user experiences.\",\n },\n ],\n },\n {\n time: \"2025 Q1\",\n steps: [\n {\n icon: <StarIcon width={20} height={20} />,\n content:\n \"Rolled out AI-driven marketplace for personalized product discovery.\",\n },\n {\n icon: <LightningBoltIcon width={20} height={20} />,\n content: \"Introduced blockchain integration for secure transactions.\",\n },\n {\n icon: <RocketIcon width={20} height={20} />,\n content:\n \"Showcased at CES with revolutionary AI-powered consumer products.\",\n },\n ],\n },\n {\n time: \"2025 Q2\",\n steps: [\n {\n icon: <GearIcon width={20} height={20} />,\n content: \"Rebranded company with new logo and visual identity.\",\n },\n {\n icon: <StarIcon width={20} height={20} />,\n content:\n \"Launched AI-driven content creation tool for marketing teams.\",\n },\n {\n icon: <CubeIcon width={20} height={20} />,\n content:\n \"Acquired a competitor in the AI space to strengthen market position.\",\n },\n ],\n },\n {\n time: \"2025 Q3\",\n steps: [\n {\n icon: <CubeIcon width={20} height={20} />,\n content: \"Launched self-driving AI platform for industrial automation.\",\n },\n {\n icon: <MagicWandIcon width={20} height={20} />,\n content: \"Added virtual reality integration to the product suite.\",\n },\n ],\n },\n {\n time: \"2025 Q4\",\n steps: [\n {\n icon: <StarIcon width={20} height={20} />,\n content:\n \"Introduced AI-driven analytics dashboard for enterprise clients.\",\n },\n {\n icon: <LightningBoltIcon width={20} height={20} />,\n content:\n \"Launched international expansion into Asian and European markets.\",\n },\n {\n icon: <RocketIcon width={20} height={20} />,\n content: \"Hosted first global conference showcasing AI innovations.\",\n },\n ],\n },\n {\n time: \"2026 Q1\",\n steps: [\n {\n icon: <GearIcon width={20} height={20} />,\n content:\n \"Released API for developers to integrate AI into their applications.\",\n },\n {\n icon: <StarIcon width={20} height={20} />,\n content:\n \"Launched new AI-powered voice assistant with multi-language support.\",\n },\n {\n icon: <GlobeIcon width={20} height={20} />,\n content:\n \"Partnered with government agencies for AI-driven policy making.\",\n },\n ],\n },\n {\n time: \"2026 Q2\",\n steps: [\n {\n icon: <GearIcon width={20} height={20} />,\n content: \"Unveiled new AI-powered robotics platform for manufacturing.\",\n },\n {\n icon: <MagicWandIcon width={20} height={20} />,\n content:\n \"Introduced machine learning models for sustainable energy solutions.\",\n },\n ],\n },\n]\n",
- "type": "registry:example"
- },
- {
- "path": "registry/magicui/arc-timeline.tsx",
- "content": "\"use client\"\n\nimport { ComponentPropsWithoutRef, ReactNode, useState } from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nexport interface ArcTimelineItem {\n time: ReactNode\n steps: Array<{\n icon: ReactNode\n content: ReactNode\n }>\n}\ninterface ArcTimelineProps extends ComponentPropsWithoutRef<\"div\"> {\n /**\n * Optional CSS class name to apply custom styles\n */\n className?: string\n /**\n * The data of the arc timeline\n */\n data: ArcTimelineItem[]\n /**\n * The configuration of the arc timeline\n */\n arcConfig?: {\n /**\n * The width of the circle, default is 5000\n */\n circleWidth?: number\n /**\n * The angle between minor steps, default is 0.35\n */\n angleBetweenMinorSteps?: number\n /**\n * The number of lines to fill between steps, default is 10\n */\n lineCountFillBetweenSteps?: number\n /**\n * The number of lines to fill in before the first step and after the last step\n */\n boundaryPlaceholderLinesCount?: number\n }\n /**\n * The default active step\n */\n defaultActiveStep?: {\n /**\n * The time of the default active step\n */\n time?: string\n /**\n * The index of the default active step\n */\n stepIndex?: number\n }\n}\n\nexport function ArcTimeline(props: ArcTimelineProps) {\n const {\n className,\n children,\n data,\n arcConfig = {},\n defaultActiveStep = {},\n ...restProps\n } = props\n\n const {\n circleWidth = 5000,\n angleBetweenMinorSteps = 0.35,\n lineCountFillBetweenSteps = 10,\n boundaryPlaceholderLinesCount = 50,\n } = arcConfig\n\n const {\n time: defaultActiveTime = data[0].time,\n stepIndex: defaultActiveStepIndex = 0,\n } = defaultActiveStep || {}\n\n const [circleContainerRotateDeg, setCircleContainerRotateDeg] = useState(\n () => {\n let count = 0\n for (const timelineItem of data) {\n if (timelineItem.time === defaultActiveTime) {\n count += defaultActiveStepIndex\n break\n } else {\n count += timelineItem.steps.length\n }\n }\n return (\n -1 * count * angleBetweenMinorSteps * (lineCountFillBetweenSteps + 1) -\n angleBetweenMinorSteps * boundaryPlaceholderLinesCount\n )\n }\n )\n\n return (\n <div\n {...restProps}\n className={cn(\"relative h-[380px] w-full overflow-hidden\", className)}\n >\n <div\n style={{\n transform: `translateX(-50%) rotate(${circleContainerRotateDeg}deg)`,\n width: `${circleWidth}px`,\n }}\n className=\"absolute top-28 left-1/2 aspect-square origin-center rounded-full transition-all duration-500 ease-in-out\"\n >\n {data.map((line, lineIndex) => {\n return (\n <div key={`${lineIndex}`}>\n {line.steps.map((step, stepIndex) => {\n // calc the angle of the step\n const angle =\n angleBetweenMinorSteps *\n (lineCountFillBetweenSteps + 1) *\n (data\n .slice(0, lineIndex)\n .map((item) => item.steps.length)\n .reduce((prev, current) => prev + current, 0) +\n stepIndex) +\n angleBetweenMinorSteps * boundaryPlaceholderLinesCount\n const isLastStep =\n lineIndex === data.length - 1 &&\n stepIndex === line.steps.length - 1\n const isFirstStep = lineIndex === 0 && stepIndex === 0\n // check if the step is active\n const isActive =\n Math.abs(angle + circleContainerRotateDeg) < 0.01\n return (\n <div key={`${lineIndex}-${stepIndex}`}>\n {/* placeholder lines before the first step */}\n {isFirstStep && (\n <PlaceholderLines\n isFirstStep={true}\n isLastStep={false}\n angle={angle}\n angleBetweenMinorSteps={angleBetweenMinorSteps}\n lineCountFillBetweenSteps={lineCountFillBetweenSteps}\n boundaryPlaceholderLinesCount={\n boundaryPlaceholderLinesCount\n }\n lineIndex={lineIndex}\n stepIndex={stepIndex}\n circleWidth={circleWidth}\n circleContainerRotateDeg={circleContainerRotateDeg}\n />\n )}\n <div\n className={cn(\n \"absolute top-0 left-1/2 -translate-x-1/2 cursor-pointer transition-all duration-200\",\n isActive ? \"h-[120px] w-[2px]\" : \"h-16 w-[1.5px]\"\n )}\n style={{\n transformOrigin: `50% ${circleWidth / 2}px`,\n transform: `rotate(${angle}deg)`,\n }}\n onClick={() => {\n setCircleContainerRotateDeg(-1 * angle)\n }}\n >\n <div\n className={cn(\n \"h-full w-full transition-colors duration-200\",\n isActive\n ? \"bg-[var(--step-line-active-color,#888888)] dark:bg-[var(--step-line-active-color,#9780ff)]\"\n : \"bg-[var(--step-line-inactive-color,#b1b1b1)] dark:bg-[var(--step-line-inactive-color,#737373)]\"\n )}\n style={{\n transformOrigin: \"center top\",\n transform: `rotate(${\n -1 * angle - circleContainerRotateDeg\n }deg)`,\n }}\n >\n <div\n className={cn(\n \"absolute bottom-0 left-1/2 aspect-square -translate-x-1/2\",\n isActive\n ? \"translate-y-[calc(100%_+_14px)] scale-[1.2] text-[var(--icon-active-color,#555555)] dark:text-[var(--icon-active-color,#d4d4d4)]\"\n : \"translate-y-[calc(100%_+_4px)] scale-100 text-[var(--icon-inactive-color,#a3a3a3)] dark:text-[var(--icon-inactive-color,#a3a3a3)]\"\n )}\n >\n {step.icon}\n </div>\n <p\n className={cn(\n \"absolute bottom-0 left-1/2 line-clamp-3 flex w-[240px] -translate-x-1/2 translate-y-[calc(100%_+_42px)] items-center justify-center text-center text-sm transition-opacity duration-300 ease-in\",\n \"text-[var(--description-color,#555555)] dark:text-[var(--description-color,#d4d4d4)]\",\n isActive ? \"opacity-100\" : \"opacity-0\"\n )}\n >\n {step.content}\n </p>\n </div>\n {stepIndex === 0 && (\n <div\n className={cn(\n \"absolute top-0 left-1/2 z-10 -translate-x-1/2 translate-y-[calc(-100%-24px)] whitespace-nowrap\",\n isActive\n ? \"text-[var(--time-active-color,#555555)] dark:text-[var(--time-active-color,#d4d4d4)]\"\n : \"text-[var(--time-inactive-color,#a3a3a3)] dark:text-[var(--time-inactive-color,#a3a3a3)]\"\n )}\n >\n {line.time}\n </div>\n )}\n </div>\n\n {/* fill lines between steps, in the last step, fill the placeholder lines */}\n <PlaceholderLines\n isFirstStep={false}\n isLastStep={isLastStep}\n angle={angle}\n angleBetweenMinorSteps={angleBetweenMinorSteps}\n lineCountFillBetweenSteps={lineCountFillBetweenSteps}\n boundaryPlaceholderLinesCount={\n boundaryPlaceholderLinesCount\n }\n lineIndex={lineIndex}\n stepIndex={stepIndex}\n circleWidth={circleWidth}\n circleContainerRotateDeg={circleContainerRotateDeg}\n />\n </div>\n )\n })}\n </div>\n )\n })}\n </div>\n </div>\n )\n}\n\ninterface PlaceholderLinesProps {\n isFirstStep: boolean\n angleBetweenMinorSteps: number\n angle: number\n lineCountFillBetweenSteps: number\n boundaryPlaceholderLinesCount: number\n isLastStep: boolean\n lineIndex: number\n stepIndex: number\n circleWidth: number\n circleContainerRotateDeg: number\n}\nfunction PlaceholderLines(props: PlaceholderLinesProps) {\n const {\n isFirstStep,\n isLastStep,\n angle,\n angleBetweenMinorSteps,\n lineCountFillBetweenSteps,\n boundaryPlaceholderLinesCount,\n lineIndex,\n stepIndex,\n circleWidth,\n circleContainerRotateDeg,\n } = props\n\n const getAngle = (index: number) => {\n if (isFirstStep) {\n return index * angleBetweenMinorSteps\n } else {\n return angle + (index + 1) * angleBetweenMinorSteps\n }\n }\n\n return (\n <>\n {Array(\n isLastStep || isFirstStep\n ? boundaryPlaceholderLinesCount\n : lineCountFillBetweenSteps\n )\n .fill(\"\")\n .map((_, fillIndex) => {\n const fillAngle = getAngle(fillIndex)\n return (\n <div\n key={`${lineIndex}-${stepIndex}-${fillIndex}`}\n className=\"absolute top-0 left-1/2 h-[34px] w-[1px] -translate-x-1/2\"\n style={{\n transformOrigin: `50% ${circleWidth / 2}px`,\n transform: `rotate(${fillAngle}deg)`,\n }}\n >\n <div\n className=\"h-full w-full bg-[var(--placeholder-line-color,#a1a1a1)] dark:bg-[var(--placeholder-line-color,#737373)]\"\n style={{\n transformOrigin: \"center top\",\n transform: `rotate(${\n -1 * fillAngle - circleContainerRotateDeg\n }deg)`,\n }}\n ></div>\n </div>\n )\n })}\n </>\n )\n}\n",
- "type": "registry:ui"
- }
- ]
-}
\ No newline at end of file
diff --git a/apps/www/public/r/arc-timeline.json b/apps/www/public/r/arc-timeline.json
deleted file mode 100644
index 96035ade..00000000
--- a/apps/www/public/r/arc-timeline.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
- "name": "arc-timeline",
- "type": "registry:ui",
- "title": "Arc Timeline",
- "description": "A curved timeline that elegantly visualizes key milestones, perfect for Web3 and AI roadmaps.",
- "files": [
- {
- "path": "registry/magicui/arc-timeline.tsx",
- "content": "\"use client\"\n\nimport { ComponentPropsWithoutRef, ReactNode, useState } from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nexport interface ArcTimelineItem {\n time: ReactNode\n steps: Array<{\n icon: ReactNode\n content: ReactNode\n }>\n}\ninterface ArcTimelineProps extends ComponentPropsWithoutRef<\"div\"> {\n /**\n * Optional CSS class name to apply custom styles\n */\n className?: string\n /**\n * The data of the arc timeline\n */\n data: ArcTimelineItem[]\n /**\n * The configuration of the arc timeline\n */\n arcConfig?: {\n /**\n * The width of the circle, default is 5000\n */\n circleWidth?: number\n /**\n * The angle between minor steps, default is 0.35\n */\n angleBetweenMinorSteps?: number\n /**\n * The number of lines to fill between steps, default is 10\n */\n lineCountFillBetweenSteps?: number\n /**\n * The number of lines to fill in before the first step and after the last step\n */\n boundaryPlaceholderLinesCount?: number\n }\n /**\n * The default active step\n */\n defaultActiveStep?: {\n /**\n * The time of the default active step\n */\n time?: string\n /**\n * The index of the default active step\n */\n stepIndex?: number\n }\n}\n\nexport function ArcTimeline(props: ArcTimelineProps) {\n const {\n className,\n children,\n data,\n arcConfig = {},\n defaultActiveStep = {},\n ...restProps\n } = props\n\n const {\n circleWidth = 5000,\n angleBetweenMinorSteps = 0.35,\n lineCountFillBetweenSteps = 10,\n boundaryPlaceholderLinesCount = 50,\n } = arcConfig\n\n const {\n time: defaultActiveTime = data[0].time,\n stepIndex: defaultActiveStepIndex = 0,\n } = defaultActiveStep || {}\n\n const [circleContainerRotateDeg, setCircleContainerRotateDeg] = useState(\n () => {\n let count = 0\n for (const timelineItem of data) {\n if (timelineItem.time === defaultActiveTime) {\n count += defaultActiveStepIndex\n break\n } else {\n count += timelineItem.steps.length\n }\n }\n return (\n -1 * count * angleBetweenMinorSteps * (lineCountFillBetweenSteps + 1) -\n angleBetweenMinorSteps * boundaryPlaceholderLinesCount\n )\n }\n )\n\n return (\n <div\n {...restProps}\n className={cn(\"relative h-[380px] w-full overflow-hidden\", className)}\n >\n <div\n style={{\n transform: `translateX(-50%) rotate(${circleContainerRotateDeg}deg)`,\n width: `${circleWidth}px`,\n }}\n className=\"absolute top-28 left-1/2 aspect-square origin-center rounded-full transition-all duration-500 ease-in-out\"\n >\n {data.map((line, lineIndex) => {\n return (\n <div key={`${lineIndex}`}>\n {line.steps.map((step, stepIndex) => {\n // calc the angle of the step\n const angle =\n angleBetweenMinorSteps *\n (lineCountFillBetweenSteps + 1) *\n (data\n .slice(0, lineIndex)\n .map((item) => item.steps.length)\n .reduce((prev, current) => prev + current, 0) +\n stepIndex) +\n angleBetweenMinorSteps * boundaryPlaceholderLinesCount\n const isLastStep =\n lineIndex === data.length - 1 &&\n stepIndex === line.steps.length - 1\n const isFirstStep = lineIndex === 0 && stepIndex === 0\n // check if the step is active\n const isActive =\n Math.abs(angle + circleContainerRotateDeg) < 0.01\n return (\n <div key={`${lineIndex}-${stepIndex}`}>\n {/* placeholder lines before the first step */}\n {isFirstStep && (\n <PlaceholderLines\n isFirstStep={true}\n isLastStep={false}\n angle={angle}\n angleBetweenMinorSteps={angleBetweenMinorSteps}\n lineCountFillBetweenSteps={lineCountFillBetweenSteps}\n boundaryPlaceholderLinesCount={\n boundaryPlaceholderLinesCount\n }\n lineIndex={lineIndex}\n stepIndex={stepIndex}\n circleWidth={circleWidth}\n circleContainerRotateDeg={circleContainerRotateDeg}\n />\n )}\n <div\n className={cn(\n \"absolute top-0 left-1/2 -translate-x-1/2 cursor-pointer transition-all duration-200\",\n isActive ? \"h-[120px] w-[2px]\" : \"h-16 w-[1.5px]\"\n )}\n style={{\n transformOrigin: `50% ${circleWidth / 2}px`,\n transform: `rotate(${angle}deg)`,\n }}\n onClick={() => {\n setCircleContainerRotateDeg(-1 * angle)\n }}\n >\n <div\n className={cn(\n \"h-full w-full transition-colors duration-200\",\n isActive\n ? \"bg-[var(--step-line-active-color,#888888)] dark:bg-[var(--step-line-active-color,#9780ff)]\"\n : \"bg-[var(--step-line-inactive-color,#b1b1b1)] dark:bg-[var(--step-line-inactive-color,#737373)]\"\n )}\n style={{\n transformOrigin: \"center top\",\n transform: `rotate(${\n -1 * angle - circleContainerRotateDeg\n }deg)`,\n }}\n >\n <div\n className={cn(\n \"absolute bottom-0 left-1/2 aspect-square -translate-x-1/2\",\n isActive\n ? \"translate-y-[calc(100%_+_14px)] scale-[1.2] text-[var(--icon-active-color,#555555)] dark:text-[var(--icon-active-color,#d4d4d4)]\"\n : \"translate-y-[calc(100%_+_4px)] scale-100 text-[var(--icon-inactive-color,#a3a3a3)] dark:text-[var(--icon-inactive-color,#a3a3a3)]\"\n )}\n >\n {step.icon}\n </div>\n <p\n className={cn(\n \"absolute bottom-0 left-1/2 line-clamp-3 flex w-[240px] -translate-x-1/2 translate-y-[calc(100%_+_42px)] items-center justify-center text-center text-sm transition-opacity duration-300 ease-in\",\n \"text-[var(--description-color,#555555)] dark:text-[var(--description-color,#d4d4d4)]\",\n isActive ? \"opacity-100\" : \"opacity-0\"\n )}\n >\n {step.content}\n </p>\n </div>\n {stepIndex === 0 && (\n <div\n className={cn(\n \"absolute top-0 left-1/2 z-10 -translate-x-1/2 translate-y-[calc(-100%-24px)] whitespace-nowrap\",\n isActive\n ? \"text-[var(--time-active-color,#555555)] dark:text-[var(--time-active-color,#d4d4d4)]\"\n : \"text-[var(--time-inactive-color,#a3a3a3)] dark:text-[var(--time-inactive-color,#a3a3a3)]\"\n )}\n >\n {line.time}\n </div>\n )}\n </div>\n\n {/* fill lines between steps, in the last step, fill the placeholder lines */}\n <PlaceholderLines\n isFirstStep={false}\n isLastStep={isLastStep}\n angle={angle}\n angleBetweenMinorSteps={angleBetweenMinorSteps}\n lineCountFillBetweenSteps={lineCountFillBetweenSteps}\n boundaryPlaceholderLinesCount={\n boundaryPlaceholderLinesCount\n }\n lineIndex={lineIndex}\n stepIndex={stepIndex}\n circleWidth={circleWidth}\n circleContainerRotateDeg={circleContainerRotateDeg}\n />\n </div>\n )\n })}\n </div>\n )\n })}\n </div>\n </div>\n )\n}\n\ninterface PlaceholderLinesProps {\n isFirstStep: boolean\n angleBetweenMinorSteps: number\n angle: number\n lineCountFillBetweenSteps: number\n boundaryPlaceholderLinesCount: number\n isLastStep: boolean\n lineIndex: number\n stepIndex: number\n circleWidth: number\n circleContainerRotateDeg: number\n}\nfunction PlaceholderLines(props: PlaceholderLinesProps) {\n const {\n isFirstStep,\n isLastStep,\n angle,\n angleBetweenMinorSteps,\n lineCountFillBetweenSteps,\n boundaryPlaceholderLinesCount,\n lineIndex,\n stepIndex,\n circleWidth,\n circleContainerRotateDeg,\n } = props\n\n const getAngle = (index: number) => {\n if (isFirstStep) {\n return index * angleBetweenMinorSteps\n } else {\n return angle + (index + 1) * angleBetweenMinorSteps\n }\n }\n\n return (\n <>\n {Array(\n isLastStep || isFirstStep\n ? boundaryPlaceholderLinesCount\n : lineCountFillBetweenSteps\n )\n .fill(\"\")\n .map((_, fillIndex) => {\n const fillAngle = getAngle(fillIndex)\n return (\n <div\n key={`${lineIndex}-${stepIndex}-${fillIndex}`}\n className=\"absolute top-0 left-1/2 h-[34px] w-[1px] -translate-x-1/2\"\n style={{\n transformOrigin: `50% ${circleWidth / 2}px`,\n transform: `rotate(${fillAngle}deg)`,\n }}\n >\n <div\n className=\"h-full w-full bg-[var(--placeholder-line-color,#a1a1a1)] dark:bg-[var(--placeholder-line-color,#737373)]\"\n style={{\n transformOrigin: \"center top\",\n transform: `rotate(${\n -1 * fillAngle - circleContainerRotateDeg\n }deg)`,\n }}\n ></div>\n </div>\n )\n })}\n </>\n )\n}\n",
- "type": "registry:ui"
- }
- ]
-}
\ No newline at end of file
diff --git a/apps/www/public/r/registry.json b/apps/www/public/r/registry.json
index 78e64b00..b861e543 100644
--- a/apps/www/public/r/registry.json
+++ b/apps/www/public/r/registry.json
@@ -1181,18 +1181,6 @@
}
]
},
- {
- "name": "arc-timeline",
- "type": "registry:ui",
- "title": "Arc Timeline",
- "description": "A curved timeline that elegantly visualizes key milestones, perfect for Web3 and AI roadmaps.",
- "files": [
- {
- "path": "registry/magicui/arc-timeline.tsx",
- "type": "registry:ui"
- }
- ]
- },
{
"name": "animated-theme-toggler",
"type": "registry:ui",
@@ -3108,25 +3096,6 @@
}
]
},
- {
- "name": "arc-timeline-demo",
- "type": "registry:example",
- "title": "Arc Timeline Demo",
- "description": "Example showing an arc timeline component.",
- "registryDependencies": [
- "@magicui/arc-timeline"
- ],
- "files": [
- {
- "path": "registry/example/arc-timeline-demo.tsx",
- "type": "registry:example"
- },
- {
- "path": "registry/magicui/arc-timeline.tsx",
- "type": "registry:ui"
- }
- ]
- },
{
"name": "animated-theme-toggler-demo",
"type": "registry:example",
diff --git a/apps/www/registry.json b/apps/www/registry.json
index 78e64b00..b861e543 100644
--- a/apps/www/registry.json
+++ b/apps/www/registry.json
@@ -1181,18 +1181,6 @@
}
]
},
- {
- "name": "arc-timeline",
- "type": "registry:ui",
- "title": "Arc Timeline",
- "description": "A curved timeline that elegantly visualizes key milestones, perfect for Web3 and AI roadmaps.",
- "files": [
- {
- "path": "registry/magicui/arc-timeline.tsx",
- "type": "registry:ui"
- }
- ]
- },
{
"name": "animated-theme-toggler",
"type": "registry:ui",
@@ -3108,25 +3096,6 @@
}
]
},
- {
- "name": "arc-timeline-demo",
- "type": "registry:example",
- "title": "Arc Timeline Demo",
- "description": "Example showing an arc timeline component.",
- "registryDependencies": [
- "@magicui/arc-timeline"
- ],
- "files": [
- {
- "path": "registry/example/arc-timeline-demo.tsx",
- "type": "registry:example"
- },
- {
- "path": "registry/magicui/arc-timeline.tsx",
- "type": "registry:ui"
- }
- ]
- },
{
"name": "animated-theme-toggler-demo",
"type": "registry:example",
diff --git a/apps/www/registry/__index__.tsx b/apps/www/registry/__index__.tsx
index f645ae91..655aaad8 100644
--- a/apps/www/registry/__index__.tsx
+++ b/apps/www/registry/__index__.tsx
@@ -1120,23 +1120,6 @@ export const Index: Record<string, any> = {
}),
meta: undefined,
},
- "arc-timeline": {
- name: "arc-timeline",
- description: "A curved timeline that elegantly visualizes key milestones, perfect for Web3 and AI roadmaps.",
- type: "registry:ui",
- registryDependencies: undefined,
- files: [{
- path: "registry/magicui/arc-timeline.tsx",
- type: "registry:ui",
- target: ""
- }],
- component: React.lazy(async () => {
- const mod = await import("@/registry/magicui/arc-timeline.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
- return { default: mod.default || mod[exportName] }
- }),
- meta: undefined,
- },
"animated-theme-toggler": {
name: "animated-theme-toggler",
description: "A component for theme changing animation.",
@@ -3249,27 +3232,6 @@ export const Index: Record<string, any> = {
}),
meta: undefined,
},
- "arc-timeline-demo": {
- name: "arc-timeline-demo",
- description: "Example showing an arc timeline component.",
- type: "registry:example",
- registryDependencies: ["@magicui/arc-timeline"],
- files: [{
- path: "registry/example/arc-timeline-demo.tsx",
- type: "registry:example",
- target: ""
- },{
- path: "registry/magicui/arc-timeline.tsx",
- type: "registry:ui",
- target: ""
- }],
- component: React.lazy(async () => {
- const mod = await import("@/registry/example/arc-timeline-demo.tsx")
- const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name
- return { default: mod.default || mod[exportName] }
- }),
- meta: undefined,
- },
"animated-theme-toggler-demo": {
name: "animated-theme-toggler-demo",
description: "Example showing animation while changing the theme.",
diff --git a/apps/www/registry/example/arc-timeline-demo.tsx b/apps/www/registry/example/arc-timeline-demo.tsx
deleted file mode 100644
index f20fb359..00000000
--- a/apps/www/registry/example/arc-timeline-demo.tsx
+++ /dev/null
@@ -1,198 +0,0 @@
-import {
- CubeIcon,
- GearIcon,
- GlobeIcon,
- LightningBoltIcon,
- LockClosedIcon,
- MagicWandIcon,
- RocketIcon,
- StarIcon,
-} from "@radix-ui/react-icons"
-
-import { ArcTimeline, ArcTimelineItem } from "@/registry/magicui/arc-timeline"
-
-export default function ArcTimelineDemo() {
- return (
- <ArcTimeline
- // className={cn(
- // "[--step-line-active-color:#888888] dark:[--step-line-active-color:#9780ff]",
- // "[--step-line-inactive-color:#b1b1b1] dark:[--step-line-inactive-color:#737373]",
- // "[--placeholder-line-color:#a1a1a1] dark:[--placeholder-line-color:#737373]",
- // "[--icon-active-color:#555555] dark:[--icon-active-color:#d4d4d4]",
- // "[--icon-inactive-color:#a3a3a3] dark:[--icon-inactive-color:#a3a3a3]",
- // "[--time-active-color:#555555] dark:[--time-active-color:#d4d4d4]",
- // "[--time-inactive-color:#a3a3a3] dark:[--time-inactive-color:#a3a3a3]",
- // "[--description-color:#555555] dark:[--description-color:#d4d4d4]"
- // )}
- data={TIMELINE}
- defaultActiveStep={{ time: "2025 Q2", stepIndex: 0 }}
- arcConfig={{
- circleWidth: 4500,
- angleBetweenMinorSteps: 0.4,
- lineCountFillBetweenSteps: 8,
- boundaryPlaceholderLinesCount: 50,
- }}
- />
- )
-}
-
-const TIMELINE: ArcTimelineItem[] = [
- {
- time: "2022",
- steps: [
- {
- icon: <RocketIcon width={20} height={20} />,
- content:
- "Founded Visionary Tech, a cutting-edge AI development company.",
- },
- {
- icon: <CubeIcon width={20} height={20} />,
- content:
- "Launched first AI-powered mobile app for personalized recommendations.",
- },
- ],
- },
- {
- time: "2023",
- steps: [
- {
- icon: <LockClosedIcon width={20} height={20} />,
- content: "Raised $3M seed round at a $20M valuation.",
- },
- {
- icon: <GlobeIcon width={20} height={20} />,
- content:
- "Expanded to global markets with localized app versions in 5 countries.",
- },
- {
- icon: <GearIcon width={20} height={20} />,
- content:
- "Implemented enhanced machine learning algorithms for data prediction.",
- },
- ],
- },
- {
- time: "2024",
- steps: [
- {
- icon: <RocketIcon width={20} height={20} />,
- content:
- "Introduced AI-powered virtual assistant for customer service.",
- },
- {
- icon: <GlobeIcon width={20} height={20} />,
- content:
- "Partnered with several tech giants to enhance app capabilities.",
- },
- {
- icon: <MagicWandIcon width={20} height={20} />,
- content:
- "Launched AR-based features for more immersive user experiences.",
- },
- ],
- },
- {
- time: "2025 Q1",
- steps: [
- {
- icon: <StarIcon width={20} height={20} />,
- content:
- "Rolled out AI-driven marketplace for personalized product discovery.",
- },
- {
- icon: <LightningBoltIcon width={20} height={20} />,
- content: "Introduced blockchain integration for secure transactions.",
- },
- {
- icon: <RocketIcon width={20} height={20} />,
- content:
- "Showcased at CES with revolutionary AI-powered consumer products.",
- },
- ],
- },
- {
- time: "2025 Q2",
- steps: [
- {
- icon: <GearIcon width={20} height={20} />,
- content: "Rebranded company with new logo and visual identity.",
- },
- {
- icon: <StarIcon width={20} height={20} />,
- content:
- "Launched AI-driven content creation tool for marketing teams.",
- },
- {
- icon: <CubeIcon width={20} height={20} />,
- content:
- "Acquired a competitor in the AI space to strengthen market position.",
- },
- ],
- },
- {
- time: "2025 Q3",
- steps: [
- {
- icon: <CubeIcon width={20} height={20} />,
- content: "Launched self-driving AI platform for industrial automation.",
- },
- {
- icon: <MagicWandIcon width={20} height={20} />,
- content: "Added virtual reality integration to the product suite.",
- },
- ],
- },
- {
- time: "2025 Q4",
- steps: [
- {
- icon: <StarIcon width={20} height={20} />,
- content:
- "Introduced AI-driven analytics dashboard for enterprise clients.",
- },
- {
- icon: <LightningBoltIcon width={20} height={20} />,
- content:
- "Launched international expansion into Asian and European markets.",
- },
- {
- icon: <RocketIcon width={20} height={20} />,
- content: "Hosted first global conference showcasing AI innovations.",
- },
- ],
- },
- {
- time: "2026 Q1",
- steps: [
- {
- icon: <GearIcon width={20} height={20} />,
- content:
- "Released API for developers to integrate AI into their applications.",
- },
- {
- icon: <StarIcon width={20} height={20} />,
- content:
- "Launched new AI-powered voice assistant with multi-language support.",
- },
- {
- icon: <GlobeIcon width={20} height={20} />,
- content:
- "Partnered with government agencies for AI-driven policy making.",
- },
- ],
- },
- {
- time: "2026 Q2",
- steps: [
- {
- icon: <GearIcon width={20} height={20} />,
- content: "Unveiled new AI-powered robotics platform for manufacturing.",
- },
- {
- icon: <MagicWandIcon width={20} height={20} />,
- content:
- "Introduced machine learning models for sustainable energy solutions.",
- },
- ],
- },
-]
diff --git a/apps/www/registry/registry-examples.ts b/apps/www/registry/registry-examples.ts
index d9901816..e6998125 100644
--- a/apps/www/registry/registry-examples.ts
+++ b/apps/www/registry/registry-examples.ts
@@ -1623,23 +1623,6 @@ export const examples: Registry["items"] = [
],
dependencies: ["rough-notation"],
},
- {
- name: "arc-timeline-demo",
- type: "registry:example",
- title: "Arc Timeline Demo",
- description: "Example showing an arc timeline component.",
- registryDependencies: ["@magicui/arc-timeline"],
- files: [
- {
- path: "example/arc-timeline-demo.tsx",
- type: "registry:example",
- },
- {
- path: "magicui/arc-timeline.tsx",
- type: "registry:ui",
- },
- ],
- },
{
name: "animated-theme-toggler-demo",
type: "registry:example",
diff --git a/apps/www/registry/registry-ui.ts b/apps/www/registry/registry-ui.ts
index 95386403..adb18e57 100644
--- a/apps/www/registry/registry-ui.ts
+++ b/apps/www/registry/registry-ui.ts
@@ -1122,19 +1122,6 @@ export const ui: Registry["items"] = [
],
dependencies: ["rough-notation"],
},
- {
- name: "arc-timeline",
- type: "registry:ui",
- title: "Arc Timeline",
- description:
- "A curved timeline that elegantly visualizes key milestones, perfect for Web3 and AI roadmaps.",
- files: [
- {
- path: "magicui/arc-timeline.tsx",
- type: "registry:ui",
- },
- ],
- },
{
name: "animated-theme-toggler",
type: "registry:ui",