--- title: BlockStack description: BlockStack is used to vertically stack elements. api_name: checkout-extensions source_url: html: >- https://shopify.dev/docs/api/checkout-extensions/post-purchase/components/blockstack md: >- https://shopify.dev/docs/api/checkout-extensions/post-purchase/components/blockstack.md --- # BlockStack BlockStack is used to vertically stack elements *** ### Example ![blockstack](https://shopify.dev/assets/assets/images/api/checkout-extensions/post-purchase/components/blockstack-CaAqv4ph.png) ##### JS ```ts import {extend, BlockStack, View} from '@shopify/post-purchase-ui-extensions'; extend('Checkout::PostPurchase::Render', (root) => { const blockStack = root.createComponent(BlockStack, undefined, [ root.createComponent(View, {border: 'base', padding: 'base'}, 'View'), root.createComponent(View, {border: 'base', padding: 'base'}, 'View'), root.createComponent(View, {border: 'base', padding: 'base'}, 'View'), ]); root.appendChild(blockStack); }); ``` ##### React ```tsx import {render, BlockStack, View} from '@shopify/post-purchase-ui-extensions-react'; render('Checkout::PostPurchase::Render', () => ); function App() { return ( View View View ); } ``` *** ## Props optional = ? | Name | Type | Description | | - | - | - | | alignment? | `"leading" \| "center" \| "trailing"` | Position children along the cross axis | | spacing? | `"xtight" \| "tight" \| "loose" \| "xloose"` | Adjust spacing between children | ***