ComponentDeprecateddata0.61 KB gzipZero dependencies

Timeline Vertical V2

Two-sided vertical timeline v2 with alternating cards.

This component is deprecated. Use timeline for new projects.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add timeline-vertical-v2

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { TimelineVerticalV2 } from "@/components/ui/timeline-vertical-v2"; <TimelineVerticalV2 />

Source code

timeline-vertical-v2.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxtimeline-vertical-v2.tsx40 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface Timeline2Item {  id: string;  title: string;  time: string;  description?: string;} export interface TimelineVerticalV2Props extends React.HTMLAttributes<HTMLDivElement> {  items: Timeline2Item[];} /** Alternating two-column vertical timeline: cards stagger left and right. */export function TimelineVerticalV2({ items = [], className, ...props }: TimelineVerticalV2Props) {

Props

PropTypeDescription
itemsTimeline2Item[]Structured list of items rendered by the component. (Default: [])