Layout

Grid

Grid layout container. Wraps the Polaris <s-grid> web component.

Usage

<template>
  <ShGrid grid-template-columns="1fr 1fr" gap="base">
    <ShGridItem>Column 1</ShGridItem>
    <ShGridItem>Column 2</ShGridItem>
  </ShGrid>
</template>

Props

Includes all Box props plus:

PropTypeDefaultDescription
gridTemplateColumnsstring—Grid template columns
gridTemplateRowsstring—Grid template rows
justifyItemsstring—Justify items
alignItemsstring—Align items
placeItemsstring—Place items shorthand
justifyContentstring—Justify content
alignContentstring—Align content
placeContentstring—Place content shorthand
gapstring—Gap between items
rowGapstring—Row gap
columnGapstring—Column gap

Slots

SlotDescription
defaultGrid children

Polaris Element

Renders as <s-grid>. See Polaris Grid docs.

© 2026 KiriminAja. Polaris and Shopify are trademarks of Shopify Inc.

KiriminAja not affiliated with Shopify.