@gridsheet/react-core
v3.0.3
Published
Spreadsheet component for React
Maintainers
Readme
Introduction
@gridsheet/react-core is a lightweight and extensible spreadsheet component for React with formula support, custom rendering, and real-time updates.

Installation
npm install @gridsheet/react-core @gridsheet/functionsUsage
import { GridSheet } from '@gridsheet/react-core';
import { useSpellbook } from '@gridsheet/react-core/spellbook'; // requires @gridsheet/functions
function App() {
const book = useSpellbook();
return (
<>
<GridSheet
book={book}
initialCells={{
A1: { value: 'Hello' },
B1: { value: 'React', style: { backgroundColor: '#61DBFB' } },
A2: { value: 123 },
B2: { value: 456 },
A3: { value: 789 },
C6: { value: '=SUM(A2:B2)' },
}}
options={{
mode: 'dark',
}}
sheetName="Sheet1"
/>
<GridSheet
book={book}
initialCells={{
C3: { value: '=SUM(Sheet1!A2:B3)' },
}}
options={{}}
sheetName="Sheet2"
/>
</>
);
}
