Installation
Install the Solid version (@ishibashi0112/spreadsheet-grid-solid), load its CSS and configure your bundler
@ishibashi0112/spreadsheet-grid-solid is the grid for Solid 2.0. It has the same props, column definitions, imperative handle, CSS and look as the React version, and it is built on the same framework-agnostic core (@ishibashi0112/spreadsheet-grid-core). It also has the same version number as the React version and the core (since 1.4.0).
Install the package
npm install @ishibashi0112/spreadsheet-grid-solidsolid-js and @solidjs/web ^2.0.0 are peer dependencies. The core (@ishibashi0112/spreadsheet-grid-core, pinned to the same version as the Solid package) and @tanstack/virtual-core are installed automatically. Supported browsers are the same as for the React version (introduction).
Load the styles
Load the CSS once, for example in your app's entry point.
import '@ishibashi0112/spreadsheet-grid-solid/style.css'It is the same file as the React version's style.css. style.layer.css and the design system themes (themes/astryx.css / themes/mantine.css / themes/heroui.css / themes/shadcn.css) exist under the same names too. How to load it together with Tailwind CSS and others is in Loading the CSS and coexistence, and the themes are in Matching a design system.
Bundler setup
Following the convention for Solid libraries, the package ships its source as JSX under the solid condition, and your bundler compiles it with your own Solid settings (DOM / SSR, development / production). With Vite, use @solidjs/vite-plugin 3 (Vite 8 or later). Tools without the solid condition read a build precompiled for the DOM (ESM only).
Inside Node (tests with Vitest and jsdom, for example), resolve with the solid or browser condition (@solidjs/vite-plugin adds it). With Node's default conditions, @solidjs/web resolves to its server build and stops with "Client-only API called on the server side".
Use TypeScript 5.8 or later, with moduleResolution set to bundler / nodenext, jsx: "preserve" and jsxImportSource: "@solidjs/web".
Parts loaded on demand
As in the React version, the column filter popover and the tool panel (about 16KB gzip) are split into a separate chunk, and the grid preloads them when the browser is idle after it appears (nothing to configure). 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-solid'
void preloadGridPopups()Next steps
- Quick start: run a minimal example (with a demo running the Solid version)
- Notes for Solid: differences from the React version, signals and stores, when writes take effect, testing
- SSR: render on the server with Vite's SSR and
@solidjs/vite-plugin