Gantt chart
Subscriptions, roadmaps, on-call rotas, project plans: they're all rows of dated bars. GanttChart draws them the bklit way, with rows that wipe in one after another and a Today chip that reveals the previous month in one gesture.
Bars you can style
Each segment's kind picks its look from config: a solid colour, a gradient, a bklit pattern, a dashed outline, or a mix. Patterns never stretch with the bar. Give a row or a segment progress and the done part stays solid while the rest fades out.
Dependencies
Tasks name their predecessors in dependencies, and GanttDependencies draws the links from each predecessor's end into its successor's start. Pick step lines with "round", "bevel" or "miter" corners or smooth curves (curve="bump"), solid or dashed, with or without arrowheads. Click a bar to select it: its links turn the destructive red, and dashed ones flow toward the connected bar. Pass onConnect and onDisconnect to let people drag new links from a handle before each bar and remove them from the middle of a line.
Moving through time
Week and Month zoom with a quick ease-out. Swipe sideways, Shift + scroll or drag to pan, with inertia. Pinch on a trackpad or touch screen to zoom from about a week to six months. Out-of-view bars leave a pill at the edge, and the Today chip brings you back.
Built for big plans
bodyHeight scrolls rows under fixed axes, and rowWindow renders only the rows in view, so you can virtualize thousands of rows with TanStack Virtual. Ticks, gridlines and weekend bands only render around the visible range. GanttWeekends and GanttDeadline take the same props as Weekends and Deadline.
npx shadcn@latest add @bklit/gantt-chartNew defaults
Weekends and Deadline are about half as opaque by default on every chart. To restore the old look, pass fillOpacity={0.45} to Weekends, or fillOpacity={0.6} and strokeOpacity={1} to Deadline.
See the Gantt chart docs, the gallery and the timeline recipes.