Componentdata1.49 KB gzipZero dependencies
Gantt Lite
Interactive festival and stage timetable schedule with animated now indicator.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add gantt-liteOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { GanttLite } from "@/components/ui/gantt-lite"; <GanttLite startHour={18} endHour={24} liveHour={20} />Source code
gantt-lite.tsx + 1 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| stages | string[] | Configures stages. (Default: DEFAULT_STAGES) |
| items | GanttItem[] | Structured list of items rendered by the component. (Default: DEFAULT_ITEMS) |
| startHour | number | Configures start hour. (Default: 18) |
| endHour | number | Configures end hour. (Default: 24) |
| liveHour | number | Configures live hour. (Default: 20) |
| onSelectItem | (item: GanttItem) => void | Callback invoked on select item. |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |