Tally UI

POSLayout

Responsive split or tabbed layout for the main POS browse-and-cart view

Import

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

Usage

<POSLayout
  headerSlot={<Header />}
  browseSlot={<ProductGrid />}
  cartSlot={<CartPanel />}
/>

On wide screens (at or above the breakpoint), renders a side-by-side split with the browse area taking 3/5 and the cart taking 2/5. On narrow screens, shows a tabbed interface that toggles between Browse and Cart views. The layout mode can be forced via the layout prop or left to respond automatically.

Props

PropTypeDefaultDescription
browseSlotReactNoderequiredProduct browsing content
cartSlotReactNoderequiredShopping cart 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
browseSlotMain product browsing area (left side in split, first tab in stacked)
cartSlotCart panel (right side in split, second tab in stacked)
headerSlotTop bar rendered above the layout with a bottom border

On this page