
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@highcharts/grid-lite-react
Advanced tools
React integration for Highcharts Grid Lite.
npm install @highcharts/grid-lite-react
import React, { useState } from 'react';
import { Grid, type GridOptions } from '@highcharts/grid-lite-react';
function App() {
const [options] = useState<GridOptions>({
dataTable: {
columns: {
name: ['Alice', 'Bob', 'Charlie'],
age: [23, 34, 45],
city: ['New York', 'Oslo', 'Paris']
}
},
caption: {
text: 'My Grid'
}
});
return <Grid options={options} />;
}
GridReact component that wraps Highcharts Grid Lite.
options (required): Configuration options for the grid. Type: GridOptionsref (optional): React ref to access the underlying grid instance. Type: RefObject<GridRefHandle<GridOptions>>gridRef (optional): Alternative prop-based ref. Type: RefObject<GridRefHandle<GridOptions>>callback (optional): Callback function called when the grid is initialized. Receives the grid instance as parameter. Type: (grid: GridInstance<GridOptions>) => voidGridOptionsType exported from the package for TypeScript support.
import type { GridOptions } from '@highcharts/grid-lite-react';
GridRefHandleType for the ref handle that provides access to the underlying grid instance.
import type { GridRefHandle } from '@highcharts/grid-lite-react';
const gridRef = useRef<GridRefHandle<GridOptions> | null>(null);
// Access the grid instance via gridRef.current?.grid
GridInstanceType for the grid instance returned by the ref or callback.
import type { GridInstance } from '@highcharts/grid-lite-react';
You can access the grid instance in two ways:
Using ref:
import { useRef } from 'react';
import { Grid, type GridRefHandle, type GridOptions } from '@highcharts/grid-lite-react';
function App() {
const gridRef = useRef<GridRefHandle<GridOptions> | null>(null);
const handleClick = () => {
// Access the grid instance
const gridInstance = gridRef.current?.grid;
if (gridInstance) {
console.log('Grid instance:', gridInstance);
}
};
return (
<>
<Grid options={options} ref={gridRef} />
<button onClick={handleClick}>Access Grid</button>
</>
);
}
Using callback:
import { Grid, type GridInstance, type GridOptions } from '@highcharts/grid-lite-react';
function App() {
const handleGridReady = (grid: GridInstance<GridOptions>) => {
console.log('Grid initialized:', grid);
};
return <Grid options={options} callback={handleGridReady} />;
}
When using this package with Next.js, you need to disable Server-Side Rendering (SSR) for the Grid component:
'use client';
import { useState } from 'react';
import dynamic from 'next/dynamic';
import { type GridOptions } from '@highcharts/grid-lite-react';
import '@highcharts/grid-lite/css/grid-lite.css';
// Disable SSR for the Grid component
const Grid = dynamic(
() => import('@highcharts/grid-lite-react').then((mod) => mod.Grid),
{ ssr: false }
);
export default function Page() {
const [options] = useState<GridOptions>({
dataTable: {
columns: {
name: ['Alice', 'Bob', 'Charlie'],
age: [23, 34, 45]
}
}
});
return <Grid options={options} />;
}
Important: The Grid component must be rendered client-side only. Always use dynamic import with ssr: false and mark your component with 'use client' directive.
For detailed documentation on available options and features, see the Highcharts Grid Lite documentation.
SEE LICENSE IN LICENSE.
FAQs
Official React integration for Highcharts Grid Lite
The npm package @highcharts/grid-lite-react receives a total of 1,310 weekly downloads. As such, @highcharts/grid-lite-react popularity was classified as popular.
We found that @highcharts/grid-lite-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.