This project is based on MaTeMaTuK/gantt-task-react. The original library was no longer maintained. Also, we wanted to move from css to tailwindcss.
It provides React components with tailwind styles for building Gantt charts.
IMPORTANT: This library is meant to be styled by tailwindcss. Therefore, a tailwindcss configuration is required in your project.
Since we do not yet have our own live demo, you can check the original live demo here:
matematuk.github.io/gantt-task-react/
npm install uay-react-tailwind-gantt
yarn install uay-react-tailwind-gantt
pnpm install uay-react-tailwind-gantt
import { Gantt, Task, EventOption, StylingOption, ViewMode, DisplayOption } from 'uay-react-tailwind-gantt';
let tasks: Task[] = [
{
start: new Date(2020, 1, 1),
end: new Date(2020, 1, 2),
name: 'Idea',
id: 'Task 0',
type:'task',
progress: 45,
isDisabled: true,
styles: { progressColor: '#ffbb54', progressSelectedColor: '#ff9e0d' },
},
...
];
<Gantt tasks={tasks} />
You may handle actions
<Gantt
tasks={tasks}
viewMode={view}
onDateChange={onTaskChange}
onTaskDelete={onTaskDelete}
onProgressChange={onProgressChange}
onDoubleClick={onDblClick}
onClick={onClick}
/>
cd ./example
npm install
npm start
You find the configuration docs here: ./docs/Configuration.md
You find the guidelines for contributions and code here: ./docs/Guidelines.md
You find the roadmap docs here: ./docs/Roadmap.md