Data Grid Pinned Rows
- from @gridcn
- by gridcn
Pinned top/bottom row bands add-on for the gridcn data grid: useDataGridPinnedRows registers a rowBands spec (e.g. a totals row) that stays sticky under the header or at the viewport's bottom edge, pixel-aligned with data rows and pinned columns. useDataGridAggregate computes filter-aware sum/avg/min/max/count for those bands, and useDataGridServerAggregate shows values a server computes for the whole result.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @gridcn/data-grid-pinned-rowsRegistry dependencies1
- @gridcn/data-grid