Photonix

GanttWidget

A premium widget for displaying project timelines and schedules using a Gantt chart.

Preview

Project Roadmap 2026, June 2026

Development lifecycle
Month
01:58
Group
Task Name
01Mon
02Tue
03Wed
04Thu
05Fri
06Sat
07Sun
08Mon
09Tue
10Wed
11Thu
12Fri
13Sat
14Sun
15Mon
16Tue
17Wed
18Thu
19Fri
20Sat
21Sun
22Mon
23Tue
24Wed
25Thu
26Fri
27Sat
28Sun
29Mon
30Tue

4 tasks in progress across 2 phases.

Usage
import { GanttWidget } from '@photonix/ultimate';

const tasks = [
  {
    id: '1',
    name: 'UI Design',
    startDate: new Date(2026, 0, 5),
    endDate: new Date(2026, 0, 15),
    type: 'work'
  },
  // ...
];

<GanttWidget 
  title="Release Plan" 
  tasks={tasks}
  defaultView="Month"
/>

Component API

GanttWidget

Prop
Type
Default
Description
title
string
-
Header title
subtitle
string
-
Header subtitle
tasks
GanttTask[]
[]
Array of task items
loading
boolean
false
Loading state
defaultView
GanttViewMode
'Month'
Initial view mode ('Day', 'Week', 'Month', 'Year')
headerExtraContent
React.ReactNode
-
Component to display in the header (e.g., custom filters)
footer
React.ReactNode
-
Content to display below the chart
appearance
WidgetAppearance
'outlined'
Widget appearance
padding
string | number
-
Widget padding (default: 16px)
style
React.CSSProperties
-
Custom style
className
string
-
Custom class name

Variants

Grouped Tasks

Organize tasks into collapsible or sticky groups using groupName.

Grouped Roadmap, June 2026

Month
01:58
Group
Task Name
01Mon
02Tue
03Wed
04Thu
05Fri
06Sat
07Sun
08Mon
09Tue
10Wed
11Thu
12Fri
13Sat
14Sun
15Mon
16Tue
17Wed
18Thu
19Fri
20Sat
21Sun
22Mon
23Tue
24Wed
25Thu
26Fri
27Sat
28Sun
29Mon
30Tue
Grouped Tasks
<GanttWidget 
  title="Grouped Roadmap" 
  tasks={GANTT_TASKS} 
/>

Loading State

Displays a skeleton preview while data is being fetched.

Loading State
<GanttWidget title="Project Progress" tasks={[]} loading />

Different Views

The widget supports Day, Week, Month, and Year views.

Yearly Overview, 2026

Year
01:58
Group
Task Name
January
February
March
April
May
June
July
August
September
October
November
December
Phase 1
Market Research
Market Research
1.4mo • Jan 1 - Jan 10
User Interviews
User Interviews
1.5mo • Jan 5 - Jan 15
Phase 2
Design System
Design System
3.6mo • Jan 12 - Feb 5
Core Implementation
Core Implementation
5.8mo • Jan 20 - Feb 28
Different Views
<GanttWidget 
  title="Yearly Overview" 
  tasks={GANTT_TASKS} 
  defaultView="Year"
/>

On this page

Preview
Component API
Variants
Grouped Tasks
Loading State
Different Views
Photonix UI - React Components, Templates & Figma Design System