# DataGrid (@salmonui/data-grid)

> The DataGrid component of @salmonui/data-grid: Virtualized data grid (React 19). One scroll container, one role="grid" tree, sticky header, frozen columns outside horizontal virtualization. DataGrid state lives in the @salmonui/data-grid/engine engine; scroll and drag transients live in a renderer-local layout store and the DOM.

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGrid

```ts
import { DataGrid } from '@salmonui/data-grid';
```

Entry index: https://salmonui.dev/docs/reference/data-grid (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid.md).

## Reference

Kind: component

```ts
function DataGrid<Row>(props: DataGridProps<Row>): import("react").JSX.Element;
```

Virtualized data grid (React 19). One scroll container, one `role="grid"`
tree, sticky header, frozen columns outside horizontal virtualization.
DataGrid state lives in the `@salmonui/data-grid/engine` engine; scroll and drag
transients live in a renderer-local layout store and the DOM.

Render features: the features the initial props need
are computed once. When none is needed, or the `features` prop provides
every needed one, the view renders directly with them. Otherwise a gate
reads them from the registry (`#data-grid-features`); the grid has no
Suspense boundary of its own. The server registry answers synchronously,
so the server markup is the plain grid in every SSR mode. While
hydrating, a gate whose chunk has not arrived throws the pending load to
the nearest ancestor boundary (or the root), which keeps the server HTML
and hydrates when the chunk arrives. On a client-only first use the
placeholder shows for one chunk round trip.

Props: [`DataGridProps`](https://salmonui.dev/docs/reference/data-grid/DataGridProps) (its members are the props)
