Gantt The Gantt chart is a powerful tool for visualizing project schedules and tracking the progress of tasks. It provides a clear, hierarchical view of tasks, allowing you to easily identify manage project timelines.
Cloud Infrastructure
Cloud Asset Management
2 months
Real-time Project Analytics
2 months
Global CDN Integration
2 months
Blockchain-based Asset Licensing
2 months
Collaboration Tools
Collaborative Editing
6 months
Real-time Video Chat
4 months
Version Control System
2 months
Multi-User Permissions
about 2 months
Collaborative Storyboarding
2 months
Real-time Language Translation
2 months
Core AI Features
AI Scene Analysis
7 months
AI-Powered Color Grading
5 months
AI Voice-to-Text Subtitles
3 months
AI-Assisted Video Transitions
2 months
AI Content-Aware Fill
about 2 months
AI-Powered Audio Enhancement
2 months
AI Scene Recommendations
2 months
AI-Driven Video Compression
2 months
AI Object Tracking
2 months
AI-Powered Video Summarization
2 months
Real-time Project Analytics
La Blockchain-based Asset Licensing
To Collaborative Storyboarding
Na Real-time Language Translation
Ra AI-Powered Color Grading
Ch AI Voice-to-Text Subtitles
Et AI-Assisted Video Transitions
Ge AI-Powered Audio Enhancement
Ke AI Scene Recommendations
Mi AI-Driven Video Compression
Os AI-Powered Video Summarization
Sa Project KickoffAug 01, 2024
Phase 1 CompletionSep 30, 2024
Version 1.0 LaunchMay 31, 2025
User Feedback ReviewAug 01, 2025
Annual Performance EvaluationNov 30, 2025
Resizable and draggable timeline items
Markers to highlight important dates
Today marker to highlight the current date
Create marker trigger to create a new marker
Grouping of features
'use client' ;
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar' ;
import {
ContextMenu,
ContextMenuContent,
ContextMenuItem,
ContextMenuTrigger,
} from '@/components/ui/context-menu' ;
import { exampleFeatures, exampleMarkers } from '@/lib/content' ;
import {
GanttCreateMarkerTrigger,
GanttFeatureItem,
GanttFeatureList,
GanttFeatureListGroup,
GanttHeader,
GanttMarker,
GanttProvider,
GanttSidebar,
GanttSidebarGroup,
GanttSidebarItem,
GanttTimeline,
GanttToday,
} from '@/components/roadmap-ui/gantt' ;
import groupBy from 'lodash.groupby' ;
import { EyeIcon, LinkIcon, TrashIcon } from 'lucide-react' ;
import { type FC, useState } from 'react' ;
import { toast } from 'sonner' ;
export const GanttExample : FC = () => {
const [ features , setFeatures ] = useState (exampleFeatures);
const groupedFeatures : Record < string , typeof features> = groupBy (
features,
'group.name'
);
const sortedGroupedFeatures = Object. fromEntries (
Object. entries (groupedFeatures). sort (([ nameA ], [ nameB ]) =>
nameA. localeCompare (nameB)
)
);
const handleViewFeature = ( id : string ) =>
toast. success ( `Feature selected: ${ id }` );
const handleCopyLink = ( id : string ) => toast. success ( `Copy link: ${ id }` );
const handleRemoveFeature = ( id : string ) =>
setFeatures (( prev ) => prev. filter (( feature ) => feature.id !== id));
const handleRemoveMarker = ( id : string ) =>
toast. success ( `Remove marker: ${ id }` );
const handleCreateMarker = ( date : Date ) =>
toast. success ( `Create marker: ${ date . toISOString () }` );
const handleMoveFeature = ( id : string , startAt : Date , endAt : Date | null ) => {
if ( ! endAt) {
return ;
}
setFeatures (( prev ) =>
prev. map (( feature ) =>
feature.id === id ? { ... feature, startAt, endAt } : feature
)
);
toast. success ( `Move feature: ${ id } from ${ startAt } to ${ endAt }` );
};
const handleAddFeature = ( date : Date ) =>
toast. success ( `Add feature: ${ date . toISOString () }` );
return (
< GanttProvider onAddItem = {handleAddFeature} range = "monthly" zoom = { 100 }>
< GanttSidebar >
{Object. entries (sortedGroupedFeatures). map (([ group , features ]) => (
< GanttSidebarGroup key = {group} name = {group}>
{features. map (( feature ) => (
< GanttSidebarItem
key = {feature.id}
feature = {feature}
onSelectItem = {handleViewFeature}
/>
))}
</ GanttSidebarGroup >
))}
</ GanttSidebar >
< GanttTimeline >
< GanttHeader />
< GanttFeatureList >
{Object. entries (sortedGroupedFeatures). map (([ group , features ]) => (
< GanttFeatureListGroup key = {group}>
{features. map (( feature ) => (
< div className = "flex" key = {feature.id}>
< ContextMenu >
< ContextMenuTrigger asChild >
< button
type = "button"
onClick = {() => handleViewFeature (feature.id)}
>
< GanttFeatureItem
onMove = {handleMoveFeature}
{ ... feature}
>
< p className = "flex-1 truncate text-xs" >
{feature.name}
</ p >
{feature.owner && (
< Avatar className = "h-4 w-4" >
< AvatarImage src = {feature.owner.image} />
< AvatarFallback >
{feature.owner.name?. slice ( 0 , 2 )}
</ AvatarFallback >
</ Avatar >
)}
</ GanttFeatureItem >
</ button >
</ ContextMenuTrigger >
< ContextMenuContent >
< ContextMenuItem
className = "flex items-center gap-2"
onClick = {() => handleViewFeature (feature.id)}
>
< EyeIcon size = { 16 } className = "text-muted-foreground" />
View feature
</ ContextMenuItem >
< ContextMenuItem
className = "flex items-center gap-2"
onClick = {() => handleCopyLink (feature.id)}
>
< LinkIcon size = { 16 } className = "text-muted-foreground" />
Copy link
</ ContextMenuItem >
< ContextMenuItem
className = "flex items-center gap-2 text-destructive"
onClick = {() => handleRemoveFeature (feature.id)}
>
< TrashIcon size = { 16 } />
Remove from roadmap
</ ContextMenuItem >
</ ContextMenuContent >
</ ContextMenu >
</ div >
))}
</ GanttFeatureListGroup >
))}
</ GanttFeatureList >
{exampleMarkers. map (( marker ) => (
< GanttMarker
key = {marker.id}
{ ... marker}
onRemove = {handleRemoveMarker}
/>
))}
< GanttToday />
< GanttCreateMarkerTrigger onCreateMarker = {handleCreateMarker} />
</ GanttTimeline >
</ GanttProvider >
);
};
The Gantt chart is made up of the following subcomponents.
The GanttProvider
component is the root component of the Gantt chart. It contains the drag-and-drop context and provides the necessary context for the other components.
Prop Type Default range
Range
- zoom
number
- onAddItem
(date: Date) => void
- children
ReactNode
- className
string
-
The GanttCreateMarkerTrigger
component is a button that triggers the creation of a new marker.
Prop Type Default onCreateMarker
(date: Date) => void
- className
string
-
The GanttFeatureItem
component is a single feature in the Gantt chart.
Prop Type Default id
string
- name
string
- startAt
Date
- endAt
Date
- status
GanttStatus
- onMove
(id: string, startDate: Date, endDate: Date | null) => void
- children
ReactNode
- className
string
-
The GanttFeatureList
component is a container for the features in the Gantt chart.
Prop Type Default className
string
- children
ReactNode
-
The GanttFeatureListGroup
component is a container for a group of features in the Gantt chart.
Prop Type Default children
ReactNode
- className
string
-
The GanttSidebar
component is a container for the sidebar in the Gantt chart.
Prop Type Default children
ReactNode
- className
string
-
The GanttSidebarGroup
component is a container for a group of items in the sidebar.
Prop Type Default children
ReactNode
- name
string
- className
string
-
The GanttSidebarItem
component is a single item in the sidebar.
Prop Type Default feature
GanttFeature
- onSelectItem
(id: string) => void
- className
string
-
The GanttTimeline
component is a container for the timeline in the Gantt chart.
Prop Type Default children
ReactNode
- className
string
-
The GanttMarker
component is a single marker in the Gantt chart.
Prop Type Default id
string
- date
Date
- label
string
-
The GanttHeader
component is the header of the Gantt chart.
Prop Type Default className
string
-