npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mantine-gantt

v0.2.0

Published

A gantt chart component for mantine

Readme

Mantine Gantt

A fully-featured Gantt chart component for Mantine. Built with React, TypeScript, and integrates seamlessly with the Mantine ecosystem.

npm version npm downloads License: MIT

Features

  • 📊 Interactive Timeline - Drag tasks to reschedule, resize to change duration
  • 🔗 Dependency Links - Visual dependency arrows between tasks with interactive creation
  • 🎨 Mantine Integration - Full support for Mantine's styling API, themes, and CSS variables
  • 📱 Responsive - Works across different screen sizes with customizable column widths
  • Accessible - Keyboard navigation and ARIA attributes for screen readers
  • 🎯 TypeScript - Full type definitions included

Installation

npm install mantine-gantt @mantine/core @mantine/hooks dayjs
# or
yarn add mantine-gantt @mantine/core @mantine/hooks dayjs

Quick Start

import { Gantt, GanttTask } from 'mantine-gantt';

import 'mantine-gantt/styles.css';

const tasks: GanttTask[] = [
  {
    id: '1',
    label: 'Project Planning',
    startDate: '2026-02-01',
    duration: 5,
    progress: 100,
  },
  {
    id: '2',
    label: 'Development',
    startDate: '2026-02-06',
    duration: 10,
    progress: 50,
    dependencies: ['1'],
    color: 'teal',
  },
];

function App() {
  return <Gantt tasks={tasks} />;
}

Props

| Prop | Type | Default | Description | | --------------- | -------------------- | -------- | -------------------------------------- | | tasks | GanttTask[] | Required | Array of tasks to display | | columnWidth | number | 40 | Width of each day column in pixels | | rowHeight | number | 44 | Height of each task row in pixels | | taskListWidth | number | 320 | Width of the task list panel in pixels | | showTitle | boolean | false | Show task title on hover | | startDate | Date | Auto | Start date of the timeline | | endDate | Date | Auto | End date of the timeline | | onTaskUpdate | (task) => void | - | Callback when a task is updated | | onTaskClick | (task) => void | - | Callback when a task is clicked | | onLinkCreate | (from, to) => void | - | Callback when a dependency is created |

Task Object

interface GanttTask {
  id: string;
  label: string;
  startDate: string; // ISO date string
  duration: number; // Days
  progress: number; // 0-100
  dependencies?: string[]; // IDs of dependent tasks
  color?: MantineColor;
}

Styling

The Gantt component supports Mantine's Styles API:

<Gantt
  tasks={tasks}
  classNames={{
    root: 'my-gantt',
    taskBar: 'my-task-bar',
  }}
  styles={{
    taskBar: { borderRadius: '8px' },
  }}
/>

Available Selectors

  • root - Main container
  • taskList - Left panel with task names
  • taskListHeader - Header of task list
  • taskListBody - Body of task list
  • taskListRow - Individual task row
  • taskListCell - Cell in task list
  • timeline - Right panel with chart
  • timelineHeader - Timeline header with dates
  • timelineBody - Timeline body with bars
  • timelineRow - Row in timeline
  • taskBar - Task bar element
  • taskBarProgress - Progress indicator
  • taskBarLabel - Task label

Examples

Compact View

<Gantt tasks={tasks} columnWidth={25} rowHeight={32} />

Wide View

<Gantt tasks={tasks} columnWidth={80} rowHeight={60} />

With Callbacks

<Gantt
  tasks={tasks}
  onTaskUpdate={(task) => console.log('Updated:', task)}
  onTaskClick={(task) => console.log('Clicked:', task)}
  onLinkCreate={(from, to) => console.log('Link:', from, '->', to)}
/>

Development

# Install dependencies
yarn

# Update documentation
npm run docgen

# Start Storybook
npm run storybook

# Run tests
npm run test

# Build
npm run build

License

MIT © WojakGra