Introduction
SpreadsheetGrid — a fast, virtualized spreadsheet / data grid for React 18.3 / 19 and Solid 2.0
SpreadsheetGrid is a virtualized data grid written in TypeScript for React 18.3 / 19 and Solid 2.0. The React version (@ishibashi0112/spreadsheet-grid) and the Solid version (@ishibashi0112/spreadsheet-grid-solid) are built on the same framework-agnostic core (@ishibashi0112/spreadsheet-grid-core). They share the props, column definitions, imperative handle, CSS, look and features, and they are released with the same version number. Features that other grids sell under a commercial license (a server-side row model with write-back, row grouping and aggregation, master/detail, range selection and the clipboard) are available under MIT. The scroll space is virtualized, so up to about a million rows stay smooth, and cell editing works like Excel and handles IME input (Japanese, Chinese, Korean) correctly.
This demo runs the real library (the React version). Double-click a cell to edit it. A demo running the Solid version is in the Solid quick start.
Pick a framework
Pick React or Solid at the top of the sidebar. The installation, quick start and framework notes pages, and every code sample on the site, switch to that framework (this browser remembers your choice). The guides and the API reference are shared.
| React | Solid | |
|---|---|---|
| Package | @ishibashi0112/spreadsheet-grid | @ishibashi0112/spreadsheet-grid-solid |
| Supported versions | react / react-dom ^18.3.0 || ^19.0.0 | solid-js / @solidjs/web ^2.0.0 |
| Get started | Installation · Quick start | Installation · Quick start |
| Notes | Notes for React · Next.js and SSR | Notes for Solid · SSR |
| Try it in the browser | StackBlitz (inventory table) | StackBlitz (inventory table) |
Features
- Virtualization: rows and columns are both virtualized, so up to a million rows scroll smoothly
- Three panes with pinned columns: pin columns to the left or right (sticky based)
- Column groups (multi-level column headers):
columnGroupsadds group rows above the column headers. Groups can be opened and closed, dragged as a whole, selected at once, and resized while keeping their proportions (guide) - Sorting and filtering: per-column filters (
text/number/date/select/set, the condition-plus-value-list filterstextSet/numberSet/dateSet,auto, which picks a kind from the values, andcustom), a global filter, and a filter management panel - Cell editing: editor types (
text/number/select/date/checkbox/custom), a select you can type to search (options can come from a server, and the chosen option can fill other columns), IME support (the Enter that confirms a conversion doesn't commit the cell), and validation (mark/reject) - Clipboard: range selection, copy and paste, and clearing with Delete / Backspace
- Fill handle: with
fillHandle, drag the square at the bottom right of the selection to fill a series (numbers / dates / weekdays / a trailing number) or copies. You can switch between the two after filling (like Excel's AutoFill) - Undo / redo:
Ctrl/Cmd+Zstyle shortcuts and an imperative API - Row grouping and aggregation:
rowGroup/aggFunc, an automatic group column, and open / close controls - Total row:
totalRowpins a total row to the bottom of the table. It aggregates with each column'saggFuncand recalculates over the filtered rows - Selection aggregates: select two or more cells to see the average, count and sum in the bottom bar (like Excel's status bar)
- Expandable rows (master/detail):
detailRowopens any UI (a sub-grid, a form) right below a row, as a full-width card that keeps the row order - Label rows (headings / separators):
labelRowdraws heading rows mixed intorowsas full-width bands. They are not counted as rows, sorting stays within each section, andstickypins the heading right below the column header - Row drag to reorder: with
enableRowDrag, grab the handle column (⋮⋮) to move rows up and down.onRowsChangereceives the new array, and the move can be undone - Server-side row model (SSRM): filters and sorting are sent to your server, soft refresh, a retry UI for load errors, and write-back with
updateRows(optimistic updates, rolled back on failure) - CSV / Excel export: built-in CSV plus
getExportData(), which works with any library - Motion: controlled in one place with the
motionprop (respects the OS "reduce motion" setting). The active cell outline glides, popovers fade in, rows move when you sort or open / close groups, the copied range has marching ants, and SSRM write-back shows a save state per cell. Opt in to a crosshair, flashes on changed cells, and rows / columns that make room while you drag - Filter with words (AI):
GridAskBarfrom/aiturns a sentence such as "Tokyo stock of 10 or less, highest first" into filters, sorting and a search. You call the AI from your own server, and row data is never sent (guide) - Find in cells:
findadds aCtrl/Cmd+Fsearch bar. Matches across all virtualized rows are highlighted and stepped through (rows are not hidden) - Conditional formatting:
column.conditionalFormatadds data bars, color scales and status chips. min / max are computed from the rows in view - Themes: CSS custom properties (
--ssg-*), dark themes (light/dark/auto/class), a theme builder that writes out the CSS variables, and theme CSS that matches the colors of Astryx / Mantine / HeroUI / shadcn/ui - English and other text: every piece of text the grid shows comes from
localeText, and an English tablelocaleTextEnis included (English and text) - Accessibility: the WAI-ARIA grid pattern, keyboard support where one
Tabmoves into and out of the grid, and names for screen readers (accessibility) - CSS designed to coexist: no conflicts with Tailwind (v3 / v4), Mantine, HeroUI or StyleX
- TypeScript first: complete type definitions and a controlled API
- Pick the features you ship:
createSpreadsheetGridincludes only the features you use, taking the JS loaded up front from about 236KB (React, everything included) / about 257KB (Solid) down to about 119-157KB (reduce the bundle size)
Requirements
- React version: react / react-dom
^18.3.0 || ^19.0.0(peer dependencies). Solid version: solid-js / @solidjs/web^2.0.0(peer dependencies) - The only runtime dependencies are
@tanstack/virtual-coreand this grid's core,@ishibashi0112/spreadsheet-grid-core(both are installed automatically) - Renders without errors in SSR (Next.js and SSR for React, SSR for Solid)
- Changes in each version are in the changelog (CHANGELOG.md) (changes only in the Solid version are in the Solid changelog). Both are written in Japanese.
Supported browsers
| Browser | Versions |
|---|---|
| Chrome / Edge | 111 and later |
| Firefox | 121 and later |
| Safari | 16.4 and later |
The same for React and Solid. The minimums come from CSS (color-mix() / :has()). Older browsers can still load the grid, but some colors (conditional formatting chips, save and error marks) and the focus outline for keyboard use may not show.