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

react-timeline-scheduler

v1.1.14

Published

A responsive and customizable timeline scheduler component for React.

Readme

React Timeline Scheduler

A modern, responsive, and fully customizable timeline scheduler component for React applications. Perfect for project management, resource planning, event scheduling, and more.

Live Demo: Try it here
Author: Pasindu Geevinda

🎬 Demo

React Timeline Scheduler Demo

✨ Features

  • 📅 Interactive Timeline: Drag to move and resize tasks
  • 🎯 Responsive Design: Works on all screen sizes
  • 🎨 Fully Themeable: Complete light/dark theme support with customizable colors (Scrollbars, Buttons, Tooltips, etc.)
  • Performance Optimized: Optimized rendering for large datasets
  • ⌨️ Accessible: Keyboard navigation and screen reader support
  • 📱 Touch Support: Works on mobile and tablet devices
  • 🔧 Configurable: Extensive customization options including Custom Tooltips

📦 Installation

npm install react-timeline-scheduler
# or
yarn add react-timeline-scheduler
# or
pnpm add react-timeline-scheduler

🚀 Quick Start

Basic Timeline

import { Timeline } from "react-timeline-scheduler";
import "react-timeline-scheduler/dist/react-timeline-scheduler.css";

const data = [
  {
    id: "1",
    label: "Task 1",
    groupLabel: "Group A",
    groupId: "group-1",
    startDate: new Date(2024, 0, 1),
    endDate: new Date(2024, 0, 5),
  },
  {
    id: "2",
    label: "Task 2",
    groupLabel: "Group B",
    groupId: "group-2",
    startDate: new Date(2024, 0, 6),
    endDate: new Date(2024, 0, 10),
  },
];

export function MyTimeline() {
  return (
    <Timeline
      config={{
        label: "Project Timeline",
        data: data,
      }}
    />
  );
}

With Custom Theme

<Timeline
  config={{
    label: "Project Timeline",
    data: data,
    theme: {
      primary: "#3b82f6",
      background: { primary: "#ffffff", secondary: "#f8fafc" },
      text: { primary: "#1e293b", secondary: "#64748b" },
      // See documentation for complete theme options
    },
  }}
/>

Dark Mode

import { darkTheme } from "react-timeline-scheduler/dist";

<Timeline
  config={{
    label: "Project Timeline",
    data: data,
    theme: {
      mode: "dark",
      dark: darkTheme,
    },
  }}
/>;

📖 Documentation

Configuration Object

interface SchedulerConfig {
  // Required
  label: string; // Timeline title/label
  data: SchedulerTask[]; // Array of tasks

  // Optional
  startOffsetDays?: number; // Days to show before first task
  endOffsetDays?: number; // Days to show after last task
  resources?: string[]; // Resource/group identifiers
  styles?: SchedulerConfigStyles; // Style configuration
  theme?: SchedulerTheme | SchedulerThemeConfig; // Theme colors
  dragConfig?: DragConfig; // Drag and drop settings
  disableToolbar?: boolean; // Hide toolbar
  animationConfig?: AnimationConfig; // Animation settings
}

Task Object

interface SchedulerTask {
  id: string; // Unique identifier
  label: string; // Task name
  groupLabel: string; // Group/row name
  groupId: string; // Group identifier
  startDate: Date; // Start date
  endDate: Date; // End date

  // Optional
  variant?: string; // Task variant
  progress?: number; // Progress percentage (0-100)
  colorKey?: string; // Custom color key
  discontinue?: {
    // Discontinuous period
    startDate: Date;
    endDate: Date;
  };
  extendedStyles?: CSSProperties; // Custom inline styles
  // NOTE: tooltipComponent is passed to the Timeline prop, not inside the Task object directly for the config.
}

Theme Configuration

The scheduler includes built-in light and dark themes and supports full customization. See the official documentation for comprehensive theme details.

interface SchedulerTheme {
  primary: string;                  // Primary color
  secondary: string;                // Secondary color

  text: {
    primary: string;                // Primary text
    secondary: string;              // Secondary text
  };

  background: {
    primary: string;                // Main background
    secondary: string;              // Secondary background
  };

  border: string;                   // Border color

  row: {
    even: string;                   // Even row background
    odd: string;                    // Odd row background
    hover: string;                  // Hover state
  };

  grid: {
    color: string;                  // Grid lines
    currentDateLine?: string;       // Today indicator
  };

  header: {
    background: string;
    text: string;
  };

  task: {
    even: string;
    odd: string;
    hover: string;
    text: string;
    border?: string;
  };

  toolbar?: {
    icon?: string;
    background?: string;
    text?: string;
  };

  progressBar?: {
    background?: string;
  };

  // Customization for tooltips and buttons
  tooltip?: {
    background?: string;
    text?: string;
    border?: string;
  };

  buttons?: {
      lock?: { ... },
      today?: { ... }
  };

  resize?: {
    handleBackground?: string;
    handleHoverBackground?: string;
  };

  scrollbar?: {
      thumb?: string;
      thumbHover?: string;
      track?: string;
  };

  interactive?: {
    focus?: string;
  };
}

🔧 Advanced Usage

Custom Task Tooltip

You can provide a tooltipComponent prop to the Timeline to customize the content of the tooltip.

const CustomTooltip = (task) => (
  <div className="custom-tooltip">
    <strong>{task.label}</strong>
    <p>{task.startDate.toLocaleDateString()}</p>
  </div>
);

// ...

<Timeline
    config={...}
    tooltipComponent={CustomTooltip}
/>

♿ Accessibility

  • Keyboard navigation support
  • ARIA labels for screen readers
  • High contrast mode support
  • Focus indicators on interactive elements

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

📄 License

MIT © Pasindu Geevinda

🔗 Links