Developers
Octave Grid React
A virtualized React data grid with editing, saved views, workbooks, formulas, and file import.
Installation
- 01
Install the package
Install@octave/grid-react;reactandreact-domare peer dependencies.Terminal pnpm add @octave/grid-react - 02
Render a grid
Define columns, give it a data source, and renderOctaveGrid.members-grid.tsx import { OctaveGrid, createGridColumn, createLocalDataSource, createDefaultView, } from "@octave/grid-react"; const columns = [ createGridColumn<Member>({ id: "name", header: "Name", accessorKey: "name", editable: true }), createGridColumn<Member>({ id: "seats", header: "Seats", accessorKey: "seats", type: "number" }), ]; const dataSource = createLocalDataSource({ rows, getRowId: (row) => row.id }); export function MembersGrid() { return ( <OctaveGrid<Member> columns={columns} dataSource={dataSource} rowId={(row) => row.id} defaultView={createDefaultView(columns)} selectionMode="multiple" /> ); }
Features
- Virtualized rows and columns with sticky headers and pinned columns.
- Inline editing with typed editors, a formula bar, and optional spreadsheet formulas.
- Fill handle, frozen rows, an aggregation footer, and conditional formatting.
- Saved views for widths, order, density, filters, and sorts.
- Workbook tabs, and import from CSV, TSV, JSON, XLSX, and XLS.
- Light, dark, and system themes; local and remote data sources.