Tally UI

CheckoutLayout

Responsive split or stacked layout for the checkout flow

Import

import { CheckoutLayout } from '@tallyui/components';

Usage

<CheckoutLayout
  headerSlot={<Header />}
  summarySlot={<OrderSummary />}
  paymentSlot={<PaymentSelector />}
/>

On wide screens, renders the order summary and payment panel side by side in a 50/50 split. On narrow screens, stacks them vertically inside a scrollable container. The layout mode can be forced via the layout prop or left to respond automatically based on the breakpoint.

Props

PropTypeDefaultDescription
summarySlotReactNoderequiredOrder summary content
paymentSlotReactNoderequiredPayment method and action content
headerSlotReactNode---Optional top header bar
layout'split' | 'stacked'autoForce a layout mode instead of using the breakpoint
breakpointnumber768Width threshold for switching between split and stacked
classNamestring---Override container styles

Slots

SlotPurpose
summarySlotOrder summary area (left side in split, first section in stacked)
paymentSlotPayment method selection and actions (right side in split, second section in stacked)
headerSlotTop bar rendered above the layout with a bottom border

On this page