DocsBlog

Get Started

Components

Data Grid

Signals

Styling

Theming

↑↓Navigate
↵Select
EscClose
  • 1.8.0

  • Day

    Night

    Preview

    Switch mode
  • cerberus

    acheron

    elysium

    oceanus

Get Started
Components
Data Grid
Signals
Styling
Theming

Get started

Overview Quickstart Columns Context Theme

Layout

Dimensions SizingSlotsOverlaysToolbarFooterPagination

Features

Column PinningColumn SortingFilteringColumn Visibility

Reference

API

Data Grid Sizing

Learn about sizing the rows in the Data Grid component.

  • source
View as Markdown
Open this page in Markdown
Anthropic
Open in Claude
Ask questions about this page
OpenAI
Open in ChatGPT
Ask questions about this page

Overview

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.

Size Options

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.

Note

Cells are rendered in a flex row container, to enable the use of any flex-related property for your content.

Predefined Sizes

There are several predefined size options available: xs to xl.

Loading example...

Predefined Size Guide

SizePixel Value
xs32
sm40
md48
lg56
xl64

Custom Sizes

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.

Loading example...

On this page

  • Overview
  • Size Options
    • Predefined Sizes
      • Predefined Size Guide
    • Custom Sizes
Edit this page on Github