v7.3.0
SupportExamplesFree Trial

Quick start guide for Remix integration

Using an AI coding assistant? Install the Bryntum MCP server to give it access to version-specific Bryntum documentation.

This quick start guide will show you how to build a basic Bryntum Gantt in a Remix TypeScript application.

Version requirements

Bryntum Gantt requires:

  • React 16.0.0 or higher
  • TypeScript 3.6.0 or higher (for TypeScript applications)

Remix version 2.15.0 requires a Node.js LTS version.

Remix 3 is currently in Alpha and is planned to become framework-agnostic, moving away from React as a dependency. This guide covers Remix 2 with React. Check the Remix blog for the latest updates.

Overview of Remix integration

To demonstrate the integration process, we'll build a simple application that looks like the image below.

Here's a breakdown of the steps we'll follow:

  1. Access the Bryntum npm registry
  2. Create a Remix application
  3. Install the Bryntum Gantt component
  4. Add the Bryntum Gantt component to the application
  5. Apply styles
  6. Run the application

Access the Bryntum npm registry

Bryntum components are commercial products, hosted in a private Bryntum repository. Please refer to the Bryntum npm repository guide for complete access information.

Create a Remix application

We'll use the Remix quick start guide to create a Remix application.

Create a Remix application by running the following command:

npx create-remix@latest

This command will guide you through setting up the Remix application by asking the following questions:

- Where should we create your new project?
 my-remix-gantt
- Initialize a new git repository?
 Yes
- Install dependencies with npm?
 Yes

When you've answered the questions, create-remix will create a folder with your project name and install the dependencies.

Change to the new Remix project directory:

cd my-remix-gantt

Install the Bryntum Gantt component

Use the commands below to install the Bryntum Gantt package.

Installing the Bryntum Gantt component using npm is the quickest way to use our products. First, get access to the Bryntum private npm registry by following the guide in our docs. Once you've logged in to the registry, install the Bryntum Gantt component packages:

Licensed versionTrial version
npm install @bryntum/gantt @bryntum/gantt-react
npm install @bryntum/gantt@npm:@bryntum/gantt-trial @bryntum/gantt-react
Note: Make sure npm is properly configured to access the Bryntum packages. If not, refer to the guide to using the Bryntum npm repository.

Install remix-utils to enable client-side rendering functionality.

npm install remix-utils

Managing dependencies

The application configuration may add a caret (^) as a prefix to dependency versions. We recommend avoiding the caret character as a version prefix to maintain full control over upgrades.

Check the generated package.json file and remove the caret character if necessary.

Add the Bryntum Gantt component to the application

First, create a configuration file.

In the app folder, create a components folder. Create an app.config.tsx file in the components folder and add the following lines of code to it:

import { BryntumGanttProps } from "@bryntum/gantt-react";

const ganttProps : BryntumGanttProps = {
    startDate  : new Date(2026, 0, 1),
    endDate    : new Date(2026, 2, 1),
    columns    : [{ type : 'name', field : 'name', width : 250 }],
    viewPreset : 'weekAndDayLetter',
    barMargin  : 10,

    project : {
        transport : {
            load : {
                url : 'data.json'
            }
        },
        autoLoad           : true,
        // Automatically introduces a `startnoearlier` constraint for tasks that (a) have no predecessors, (b) do not use
        // constraints and (c) aren't `manuallyScheduled`
        autoSetConstraints : true
    }
};

export { ganttProps };

This file will be used to configure the Bryntum Gantt component.

Now create a Bryntum Gantt React component.

In the app/components/ folder, create a bryntum.client.tsx file and add the following lines of code to it:

import { BryntumGantt } from '@bryntum/gantt-react';
import { ganttProps } from './app.config';

const BryntumClient = () => {
    return (
        <BryntumGantt
            {...GanttProps}
        />
    );
};

export default BryntumClient;

The file extension is .client.tsx because Bryntum components are rendered on the client-side only and Remix uses .client.tsx for client-side files.

Let's create a file for example data.

In the public folder, create a folder called data. In the data folder, create a file called data.json and add the following JSON object to it:

{
  "success": "true",
  "tasks": {
    "rows": [
      {
        "id": 1,
        "name": "Documentation Project",
        "expanded": true,
        "children": [
          {
            "id": 2,
            "name": "Preparation",
            "expanded": true,
            "children": [
              { "id": 6, "name": "Proof-read docs", "startDate": "2026-01-02", "endDate": "2026-01-09" },
              { "id": 3, "name": "Release docs",    "startDate": "2026-01-09", "endDate": "2026-01-10" }
            ]
          },
          {
            "id": 4,
            "name": "Development",
            "expanded": true,
            "children": [
              { "id": 7, "name": "Write API docs",  "startDate": "2026-01-05", "endDate": "2026-01-12" },
              { "id": 8, "name": "Write tutorials", "startDate": "2026-01-10", "endDate": "2026-01-16" },
              { "id": 9, "name": "Create examples", "startDate": "2026-01-12", "endDate": "2026-01-18" }
            ]
          },
          {
            "id": 5,
            "name": "Review & Release",
            "expanded": true,
            "children": [
              { "id": 10, "name": "Team review",     "startDate": "2026-01-18", "endDate": "2026-01-20" },
              { "id": 11, "name": "Final approval",  "startDate": "2026-01-20", "endDate": "2026-01-21" },
              { "id": 12, "name": "Public release",  "startDate": "2026-01-22", "endDate": "2026-01-22" }
            ]
          }
        ]
      }
    ]
  },
  "dependencies": {
    "rows": [
      { "fromTask": 6,  "toTask": 3  },
      { "fromTask": 7,  "toTask": 8  },
      { "fromTask": 8,  "toTask": 9  },
      { "fromTask": 9,  "toTask": 10 },
      { "fromTask": 10, "toTask": 11 },
      { "fromTask": 11, "toTask": 12 }
    ]
  }
}

Now we'll create a wrapper component for the Bryntum Gantt React component to ensure it renders only on the client side.

Replace the contents of the app/routes/_index.tsx file with the following code:

import { ClientOnly } from 'remix-utils/client-only';
import BryntumClient from '~/components/bryntum.client';

export default function Index() {
    return (
        <ClientOnly fallback={<h1>Loading Bryntum Gantt</h1>}>
            {() => <BryntumClient/>}
        </ClientOnly>
    );
}

Apply styles

To style the Bryntum Gantt, create an app/styles/ folder and add an index.css file to it. Paste the following code into index.css:

body,
html {
    margin         : 0;
    display        : flex;
    flex-direction : column;
    height         : 100vh;
    font-family    : Poppins, "Open Sans", Helvetica, Arial, sans-serif;
    font-size      : 14px;
}

Import the index.css file and a Bryntum theme in Bryntum.client.tsx:

/* FontAwesome is used for icons */
import "@bryntum/gantt/fontawesome/css/fontawesome.css";
import "@bryntum/gantt/fontawesome/css/solid.css";
/* Import the structural CSS for gantt */
import "@bryntum/gantt/gantt.css";
/* Import a Bryntum theme */
import "@bryntum/gantt/svalbard-light.css";
import "../styles/index.css";

This stylesheet imports the Bryntum Gantt structural CSS, the Svalbard theme, and gives the page a two-panel layout, with the scheduler above the utilization view. Bryntum provides five themes with light and dark variants that can be customized.

Learn more about styling your Bryntum Gantt in our style guide.

Run the application

Start the local development server:

npm run dev

You can access the Bryntum Gantt app in your browser at http://localhost:5173/.

Troubleshooting

If you run into any issues, refer to the troubleshooting guide.

What to do next?

Advanced integration with React

Explore our comprehensive React guide to learn more about how Bryntum Gantt integrates with React and start customizing your application.

Working with data in Bryntum Gantt

Our guide to data binding explains how data can be bound to the component.

Bryntum components often use multiple data collections and entities.

For a detailed explanation of how these elements interact, see our guide to displaying data in Bryntum Gantt.

Contents