Calm motion: animations on this site only fade, with no movement
Gantt
Bars on a time axis, draggable, with dependencies
A schedule drawn as bars: what runs when, what overlaps, how far each task has got. For events in order without durations, use Timeline. For tasks that move between states, Kanban.
Basic
Plan the release
Build the components
Write the docs
End-to-end pass
Publish
tasksis[{ id, label, start, end, progress? }]with ISO dates (2026-10-05). A task covers both its first and last day, sostartequal toendis a one-day bar.progress(0 to 100) fills the bar with ink.- The axis spans the tasks, and today if it is earlier.
fromandtofix it, and tasks outside are clipped.dayWidthis the zoom: below 12 px the day numbers are left out and only months show. Weekends are shaded and today has an accent line. - The label column stays put while the chart scrolls sideways.
localesets the month and date names. - Each bar is a button with its dates and progress as its name ("Build: Oct 4 to Oct 10, 60% done"). One tab stop. ↑ ↓ move between bars, Home and End jump, Enter or a click selects.
v-model:selectedholds the chosen id (the accent marks it) andselectfires with the task. after: [id, …]on a task draws an elbow arrow from the end of each task that it waits for to its start. The name of the bar says it ("Build: Oct 4 to Oct 10, after Design"). Unknown ids are ignored. The arrows follow a bar while you drag it.editablemakes it a planner. Drag a bar to move it, or its left or right edge to resize it, in whole days. The bar follows the pointer and the change is committed when you let go. An end cannot cross the other, so a task is always at least one day. From the keyboard, Alt + ← → moves the focused task a day and Alt + Shift + ← → moves its end. Each change is announced ("Build: Oct 5 to Oct 11").v-model:taskscarries the edits (new objects, dates as ISO strings), andchange(task, { start, end })fires per edit, so you can save it. Withouteditablenothing can be changed and the grips are not drawn.- Moving a task past the edge of the chart widens the axis when
fromandtoare not fixed. With them fixed, the bar is clipped.
Usage
ts
import { BlessGantt } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
dayWidth | number | 28 | width of one day in px; under 12 the day numbers are left out |
rowHeight | number | 36 | |
from | string | — | first and last day shown; defaults to the span of the tasks |
to | string | — | |
locale | string | — | |
labelWidth | number | 160 | width of the label column in px |
editable | boolean | — | drag a bar to move it and its ends to resize it; Alt + arrows from the keyboard |
label | string | "Schedule" | |
labels | Partial<{ span: (task: string, from: string, to: string) => string; done: (percent: number) => string; after: (names: string[]) => string; }> | — | the sentence read for a bar and the one announced after an edit; dates arrive formatted |
tasks* | BlessGanttTask[] | — | the schedule; with `editable`, moves and resizes come back through here |
selected | string | number | null | null |
Events
| Name | Payload | Description |
|---|---|---|
select | [task: BlessGanttTask] | |
update:selected | [value: string | number | null] | |
change | [task: BlessGanttTask, dates: { start: string; end: string; }] | |
update:tasks | [value: BlessGanttTask[]] |