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

Concepts

OverviewCompositionCerberus ContextTesting

Layout

Aspect RatioBleedBoxCenterContainerContainer QueryDividerFlexFloatGridGroupLink OverlayScrollableStackWrap

Components

AccordionAdmonitionAvatarButtonCarouselCheckboxClipboardCollapsibleComboboxConfirm ModalCTA ModalDate PickerDialogFieldFieldsetFile UploaderIconButtonInputLoading StatesMarqueeMenuNotificationsNumber InputPaginationPin InputPopoverProgress IndicatorsPrompt ModalRadioRatingSelectSliderSplit ButtonSwitchTableTabsTagTextTextareaToggleTooltip

Utilities

Client OnlyDownload TriggerEnvironmentFeature FlagsFocus TrapForFormat ByteFormat NumberFormat Relative TimeFormat Relative TimeFrameHighlightJSON Tree ViewLocalePortalPresenceShowSwapsplitPropsTheme

Grid

Used to manage grid layouts.

  • Panda
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

Import

import { Grid } from 'styled-system/jsx'

Usage

Easily create grid layouts with the Grid component.

Loading example...

Col Span

Pass colSpan prop to GridItem to span across columns.

Loading example...

Spanning Columns

In some layouts, you may need certain grid items to span specific amount of columns or rows instead of an even distribution

Loading example...

Props

The Grid component accepts the following utility props in addition to style and factory props:

PropTypeDescription
gridTemplateColumnsSystemStyleObject['gridTemplateColumns']Defines the columns of the grid.
gridTemplateRowsSystemStyleObject['gridTemplateRows']Defines the rows of the grid.
gapSystemStyleObject['gap']Defines the gap between grid items.
colSpannumberNumber of columns the grid item should span.
rowSpannumberNumber of rows the grid item should span.
columnsnumberNumber of columns in the grid.

On this page

  • Import
  • Usage
    • Col Span
    • Spanning Columns
  • Props
Edit this page on Github
rowSpan=2
colSpan=2
colSpan=2
colSpan=4