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

@equinor/fusion-framework-react-ag-grid

v36.0.0

Published

Fusion module for using AG Grid

Readme

@equinor/fusion-framework-react-ag-grid

React integration for AG Grid within Fusion Framework applications.

This package provides a pre-configured AG Grid setup with the Equinor Design System theme, license management, and module registration — so every grid in the application shares consistent styling and configuration out of the box.

Who Should Use This

Any Fusion Framework React application that needs a data grid with sorting, filtering, grouping, inline editing, or Excel export. If you are building a standalone app outside Fusion Framework, use ag-grid-react directly instead.

Quick Start

Install

pnpm add @equinor/fusion-framework-react-ag-grid

Enable the Module

Register the AG Grid module during application configuration:

import { enableAgGrid } from '@equinor/fusion-framework-react-ag-grid';

export const configure = (configurator) => {
  enableAgGrid(configurator);
};

Render a Grid

import { AgGridReact } from '@equinor/fusion-framework-react-ag-grid';
import { useTheme } from '@equinor/fusion-framework-react-ag-grid';
import type { ColDef } from '@equinor/fusion-framework-react-ag-grid/community';

const columns: ColDef[] = [
  { field: 'name' },
  { field: 'age', filter: 'agNumberColumnFilter' },
];

const MyGrid = ({ rows }) => {
  const theme = useTheme();
  return <AgGridReact theme={theme} rowData={rows} columnDefs={columns} />;
};

[!IMPORTANT] Since AG Grid types are re-exported from this package, TypeScript may have trouble resolving them. Set "moduleResolution": "bundler" in your tsconfig.json to fix type-resolution issues.

Key Concepts

| Concept | Description | | --- | --- | | enableAgGrid | Registers the AG Grid Fusion module. Accepts an optional builder callback for theme, license, and module customization. | | useTheme | React hook that returns the active AG Grid Theme from the module system. | | fusionTheme | Default theme applying Equinor fonts and EDS accent colors on top of AG Grid Alpine. | | createTheme | Creates a new blank AG Grid theme for fully custom styling. |

API Surface

Main Entry Point (@equinor/fusion-framework-react-ag-grid)

| Export | Kind | Description | | --- | --- | --- | | AgGridReact | Component | React wrapper for rendering an AG Grid instance. | | AgGridReactProps | Type | Props accepted by AgGridReact. | | enableAgGrid | Function | Registers the AG Grid module on a Fusion configurator. | | IAgGridProvider | Interface | Read-only provider exposing resolved license key and theme. | | fusionTheme | Constant | Pre-built EDS-based AG Grid theme. | | createTheme | Function | Creates a blank AG Grid theme. | | Theme | Type | AG Grid theme type. |

Community Entry Point (@equinor/fusion-framework-react-ag-grid/community)

Re-exports everything from ag-grid-community — column definitions, cell renderers, row models, events, and utilities.

Enterprise Entry Point (@equinor/fusion-framework-react-ag-grid/enterprise)

Re-exports everything from ag-grid-enterprise — row grouping, tree data, server-side row model, Excel export, integrated charts, and more. Requires a valid license key.

Themes Entry Point (@equinor/fusion-framework-react-ag-grid/themes)

| Export | Kind | Description | | --- | --- | --- | | fusionTheme | Constant | Default Fusion/EDS AG Grid theme. | | createTheme | Function | Creates a blank theme. | | createThemeFromTheme | Function | Clones a theme across module boundaries (necessary due to AG Grid instanceof checks). | | Theme | Type | AG Grid theme type. |

Common Patterns

Customize the Global Theme

Override theme parameters during module configuration:

enableAgGrid(configurator, (builder) => {
  builder.setTheme((theme) => {
    return theme.withParams({
      backgroundColor: '#1f2836',
      browserColorScheme: 'dark',
      foregroundColor: '#FFF',
      headerFontSize: 14,
    });
  });
});

[!TIP] AG Grid has a theme builder for previewing and generating custom theme parameters.

Override Theme per Grid Instance

Use useTheme to get the base theme, then customize it for a specific grid:

import { useTheme } from '@equinor/fusion-framework-react-ag-grid';
import { AgGridReact } from '@equinor/fusion-framework-react-ag-grid';
import { useMemo, useState } from 'react';

const MyComponent = () => {
  const baseTheme = useTheme();
  const [hasError, setHasError] = useState(false);

  const theme = useMemo(
    () => baseTheme.withParams({ cellTextColor: hasError ? '#FF0000' : undefined }),
    [baseTheme, hasError],
  );

  return <AgGridReact theme={theme} /* ...other props */ />;
};

Use AG Grid Integrated Charts

Install the separate charts package and register IntegratedChartsModule:

pnpm add @equinor/fusion-framework-react-ag-charts
import { IntegratedChartsModule } from '@equinor/fusion-framework-react-ag-grid/enterprise';
import { AgChartsEnterpriseModule } from '@equinor/fusion-framework-react-ag-charts/enterprise';

enableAgGrid(configurator, (builder) => {
  builder.addModule(IntegratedChartsModule.with(AgChartsEnterpriseModule));
});

[!NOTE] AG Charts is a standalone package since v35. See @equinor/fusion-framework-react-ag-charts for standalone chart usage.

Upgrade Guides

Upgrading to v35

AG Charts separated: Chart functionality moved to @equinor/fusion-framework-react-ag-charts.

// Before (v34)
import { AgChartsEnterpriseModule } from '@equinor/fusion-framework-react-ag-grid/enterprise';

// After (v35)
import { IntegratedChartsModule } from '@equinor/fusion-framework-react-ag-grid/enterprise';
import { AgChartsEnterpriseModule } from '@equinor/fusion-framework-react-ag-charts/enterprise';

enableAgGrid(configurator, (builder) => {
  builder.addModule(IntegratedChartsModule.with(AgChartsEnterpriseModule));
});

Peer dependencies: Update to ag-grid-community and ag-grid-enterprise >= 35.1.0.

Upgrading from v32 to v33

Remove all previous references to @equinor/fusion-react-ag-grid-styles, @ag-grid-community/*, and @ag-grid-enterprise/* from your project dependencies. Only @equinor/fusion-framework-react-ag-grid should be installed.