Prerequisites
SVAR Svelte Gantt 2.x requires Svelte 5. If you are on Svelte 4, see the Svelte 4 note below.Install the package
Svelte 4
There are two published versions of SVAR Svelte Gantt:
To use the Svelte 4 version:
This documentation covers 2.x (Svelte 5). If you are on Svelte 4, use
wx-svelte-gantt@1.2.0.What is included
The package exports the following components and utilities:Theme setup
SVAR Svelte Gantt ships with three themes:Willow (light), WillowDark (dark), and Material. Each theme is a Svelte component that wraps your Gantt instance and injects the required CSS custom properties.
Wrap your <Gantt> component in a theme wrapper:
- Willow (light)
- WillowDark
- Material
Next steps
Quickstart
Build a working Gantt chart in minutes with a step-by-step guide.
Tasks and links
Learn the data structures for tasks, links, and milestones.