Row sizing options are avaiable for the Data Grid component vai the rowSize prop.
Utilizing this will either reduce or increase the visual size of all rows
(including headers).
This is a great option if you want to display more content within a cell without it feeling compact.
The Data Grid has a flexible sizing system that allows you to choose from predefined size options or define a custom size if needed. All sizes are defined in pixels to ensure virtualization works correctly.
When no rowSize is provided, the Data Grid will use the sm size.
There are several predefined size options available: xs to xl.
| Size | Pixel Value |
|---|---|
xs | 32 |
sm | 40 |
md | 48 |
lg | 56 |
xl | 64 |
You can also define a custom size by passing a number directly to the rowSize prop.
This allows you to use any pixel value you need.