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
gridTemplateColumnsstringGrid template columns
gridTemplateRowsstringGrid template rows
justifyItemsstringJustify items
alignItemsstringAlign items
placeItemsstringPlace items shorthand
justifyContentstringJustify content
alignContentstringAlign content
placeContentstringPlace content shorthand
gapstringGap between items
rowGapstringRow gap
columnGapstringColumn 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.