Componentdata0.54 KB gzipZero dependencies

Timeline

Vertical chronological events with dashed connection stem.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

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

npx bigbullui add timeline

Or install the full npm package:

npm install bigbullui

Usage

tsx8 lines
import { Timeline } from "@/components/ui/timeline"; <Timeline  items={[    { date: "18:00", title: "Doors Open" },    { date: "20:00", title: "Main Event", tone: "accent" },  ]}/>

Source code

timeline.tsx + 1 helper

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

tsxtimeline.tsx56 lines
import * as React from "react";import { cn } from "./lib/utils"; export interface TimelineItem {  date: string;  title: string;  description?: string;  tone?: "default" | "accent";} export interface TimelineProps extends React.HTMLAttributes<HTMLDivElement> {  items: TimelineItem[];  className?: string;} export function Timeline({ items = [], className, ...props }: TimelineProps) {  return (    <div className={cn("relative space-y-6 ps-6", className)} {...props}>

Props

PropTypeDescription
itemsTimelineItem[]Structured list of items rendered by the component. (Default: [])
classNamestringOptional Tailwind or custom CSS classes merged with component styles.