Layout

Stack

Stack layout for vertical or horizontal arrangement. Wraps the Polaris <s-stack> web component.

Usage

<template>
  <ShStack gap="base" direction="horizontal">
    <ShButton>Button 1</ShButton>
    <ShButton>Button 2</ShButton>
  </ShStack>
</template>

Props

Includes all Box props plus:

PropTypeDefaultDescription
directionstring—Stack direction
justifyContentstring—Justify content
alignItemsstring—Align items
alignContentstring—Align content
gapstring—Gap between items
rowGapstring—Row gap
columnGapstring—Column gap

Slots

SlotDescription
defaultStack children

Polaris Element

Renders as <s-stack>. See Polaris Stack docs.

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

KiriminAja not affiliated with Shopify.