DataGrid API
Headless data grid compound with column layout, cell editing, row ordering, and row spanning. Built on createDataGrid.
Related
Explore these related pages for additional context and usage patterns.
| Page | Category |
|---|---|
| Data Grid | Data |
| createDataGrid | Data |
| createDataTable | Data |
| Pagination | Semantic |
| Splitter | Semantic |
DataGrid.Root
Props
Events
update:search
[value: string]Slots
default
DataGridRootSlotProps<T>DataGrid.Body
Props
Slots
default
DataGridBodySlotProps<T>DataGrid.Cell
Props
Slots
default
DataGridCellSlotPropsDataGrid.Column
Props
validate
((value: unknown) => string | true) | undefinedValidate a committed edit. Return true or an error string.
Slots
default
DataGridColumnSlotPropsDataGrid.Empty
Props
Slots
default
DataGridEmptySlotPropsDataGrid.Handle
Props
Slots
default
DataGridHandleSlotPropsDataGrid.Header
Props
Slots
default
DataGridHeaderSlotPropsDataGrid.Row
Props
resizable
boolean | undefinedEnable column resizing via Splitter composition.
When true, the row renders as Splitter.Root and child columns
register as Splitter.Panel. Place DataGrid.Handle inside Column
(not as a sibling of Column) so the row's owned children stay
columnheaders. Requires the as="div" chain — native table tags
cannot host Splitter.
Default: false
Slots
default
DataGridRowSlotPropsDataGrid.Table
Props
Slots
default
DataGridTableSlotProps