Installation
Install the React version (@ishibashi0112/spreadsheet-grid) and load its CSS
Install the package
npm install @ishibashi0112/spreadsheet-gridreact and react-dom ^18.3.0 || ^19.0.0 are peer dependencies (your app must have them installed). The runtime dependency @tanstack/virtual-core (the framework-agnostic core of TanStack Virtual) and the grid's own framework-agnostic core, @ishibashi0112/spreadsheet-grid-core, are installed automatically (the core is pinned to the same version as the React package). You don't need to import them in your app. Supported browsers are listed in the introduction.
On React 18, if you wrap the grid in your own function component and pass it a ref, make the wrapper a forwardRef (Notes for React).
Load the styles
The grid's CSS ships as a separate file. Import it once, for example in your app's entry point.
import '@ishibashi0112/spreadsheet-grid/style.css'The base styles are plain (unlayered) CSS scoped to .ssg-* classes, and the design tokens are defined with zero specificity (:where(.ssg-root)). So your overrides always win, whatever the import order. How to load it together with Tailwind CSS and others is in Loading the CSS and coexistence.
Parts loaded on demand
The column filter popover and the tool panel (filter management / column visibility / column order) are split into separate chunks and are not part of the initial load (the JS loaded up front is about 10% smaller). Nothing to configure: any bundler that supports dynamic import() (Vite / webpack / Next.js / Rollup / esbuild and others) handles it as is.
- After the grid appears, it preloads these parts when the browser is idle (only when the feature can be used).
- If one is opened before the preload, it loads right then and appears when the load finishes.
- To load them ahead of time, for example before a page transition, call
preloadGridPopups()(usually not needed). For use in tests, see Testing.
import { preloadGridPopups } from '@ishibashi0112/spreadsheet-grid'
void preloadGridPopups()Next steps
- Quick start: run a minimal example
- Notes for React:
refon React 18 / 19, using a new row right away, testing - Next.js and SSR: the
'use client'boundary in the App Router