Componentdata1.49 KB gzipZero dependencies

Gantt Lite

Interactive festival and stage timetable schedule with animated now indicator.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

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

npx bigbullui add gantt-lite

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { GanttLite } from "@/components/ui/gantt-lite"; <GanttLite startHour={18} endHour={24} liveHour={20} />

Source code

gantt-lite.tsx + 1 helper

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

tsxgantt-lite.tsx159 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface GanttItem {  id: string;  title: string;  stage: string;  startHour: number; // 0 to 24 (e.g. 18.5 = 18:30)  durationHours: number;  tier?: "VIP" | "HEADLINER" | "SUPPORT" | "DJ";} export interface GanttLiteProps extends React.HTMLAttributes<HTMLDivElement> {  stages?: string[];  items?: GanttItem[];  startHour?: number;

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { GanttLite } from "@/components/ui/gantt-lite"; <GanttLite />
PropTypeDescription
stagesstring[]Configures stages. (Default: DEFAULT_STAGES)
itemsGanttItem[]Structured list of items rendered by the component. (Default: DEFAULT_ITEMS)
startHournumberConfigures start hour. (Default: 18)
endHournumberConfigures end hour. (Default: 24)
liveHournumberConfigures live hour. (Default: 20)
onSelectItem(item: GanttItem) => voidCallback invoked on select item.
classNamestringOptional Tailwind or custom CSS classes merged with component styles.