Skip to content
Hazine

Carts and Checkout

10 of 48 shipped. From basket to confirmation. Variants follow container x layout x data scenario x interaction, with at most two scenarios per skeleton.

01 / Cart pages

6 of 7 shipped
  • cart pages

    Cart rendered as a real table with columns for product, unit price, quantity, line total and remove, and totals in the table footer. Use when shoppers compare prices across many lines.

    How it differs. Semantic table whose footer totals sit under the line total column. Below 48rem each row reflows to a stack of label and value pairs with the column labels as visible text.

    shadcn add @hazine/cart-page-table-layout

    Depends on button, table, @hazine/heading, @hazine/number-input-stepper-buttons, @hazine/use-controllable-state, lucide-react

  • cart pages

    Marketplace cart that nests lines in one frame per seller, each with its own delivery window, shipping cost, total and checkout. A closing ledger sums the shipments. Use when one order ships as several parcels.

    How it differs. One frame per shipment, split into its lines and its own delivery and cost rail with checkout and remove all. A closing ledger sums shipments as rows. A removed shipment leaves a restore slot.

    shadcn add @hazine/cart-page-grouped-by-shipment

    Depends on button, @hazine/heading, @hazine/number-input-stepper-buttons, @hazine/use-controllable-state, lucide-react

  • cart pages

    Cart page with the active basket above a Saved for later list. Shoppers move lines in both directions without losing them, and only the basket counts toward the total. Use it for considered purchases.

    How it differs. Two lists with moves in both directions: cart lines closed by a totals band, then a hairline grid of saved lines. Focus stays in the source list and one status message gives count and total.

    shadcn add @hazine/cart-page-saved-for-later

    Depends on button, @hazine/heading, @hazine/use-controllable-state, lucide-react

  • cart pages

    Cart where every line has a checkbox and only the selected lines go to checkout, with a select-all control and bulk save or remove. Use for large baskets that shoppers buy in parts.

    How it differs. Selection drives everything: total, item count and checkout label follow the selected lines, a bulk toolbar replaces the hint while any line is selected, and the rail says what stays behind.

    shadcn add @hazine/cart-page-selective-checkout

    Depends on button, @hazine/heading, @hazine/number-input-stepper-buttons, @hazine/use-controllable-state, lucide-react

  • cart pages

    Full cart page with editable lines beside a pinned order summary rail holding the delivery estimate, promo entry, itemised totals and the checkout action. The default cart for desktop-first stores.

    How it differs. Lines and rail share one frame and the rail stays pinned while lines scroll. Under 48rem the rail drops below and the total with checkout becomes a sticky bottom bar. Removed lines leave an undo row.

    shadcn add @hazine/cart-page-summary-rail

    Depends on button, input, label, @hazine/heading, @hazine/number-input-stepper-buttons, @hazine/use-controllable-state, lucide-react

  • cart pages

    Narrow, centred cart where lines, a delivery note, a dotted-leader ledger, the total and checkout stack in one reading column. Use for small catalogs that want a calm, editorial basket.

    How it differs. One column with no rail: each line keeps its controls under its name, totals follow the last line as a receipt, and checkout sits inline at the end with no competing region.

    shadcn add @hazine/cart-page-single-column

    Depends on button, separator, @hazine/heading, @hazine/number-input-stepper-buttons, @hazine/use-controllable-state, lucide-react

Planned 1

  • B2B quick order cartPro

02 / Mini carts

4 of 6 shipped
  • mini carts

    Fixed pill in a corner of the viewport with the item count and subtotal. Pressing it grows the pill in place into a compact panel with editable lines, a totals ledger and checkout.

    How it differs. Trigger and panel are one surface that grows from pill to panel, with no overlay, backdrop or focus trap. It leaves the page while the cart is empty and takes an edge offset to clear page controls.

    shadcn add @hazine/mini-cart-floating-pill

    Depends on badge, button, @hazine/heading, @hazine/use-controllable-state, lucide-react

  • mini carts

    Mobile cart that rises from the bottom edge and rests at two heights. Half height shows the subtotal and checkout, full height adds every line with quantity controls.

    How it differs. Bottom sheet with two snap heights and the summary above the lines, so checkout is reachable at half height. Each drag (expand, collapse, dismiss) has a button equivalent.

    shadcn add @hazine/mini-cart-bottom-sheet

    Depends on button, drawer, @hazine/heading, @hazine/use-controllable-state, lucide-react

  • mini carts

    Read-only cart preview anchored to the header cart button: the three newest lines, the rest summed in one row, the subtotal and links to cart and checkout. Use it when a glance is enough.

    How it differs. Non-modal popover on its trigger with no editing: only the newest lines are listed, older ones fold into one summed row that links to the cart, and the page behind stays usable.

    shadcn add @hazine/mini-cart-header-popover

    Depends on badge, button, popover, @hazine/heading, lucide-react

  • mini carts

    Cart button that opens a modal side sheet with editable lines between a header and a pinned subtotal footer. Use it when shoppers should review and adjust the cart without leaving the page.

    How it differs. Modal side sheet with three fixed zones: header with count and shipping meter, scrolling lines, pinned subtotal footer. Focus is trapped while open and returns to the cart button.

    shadcn add @hazine/mini-cart-side-drawer

    Depends on button, sheet, @hazine/heading, @hazine/use-controllable-state, lucide-react

Planned 2

  • Added to cart confirmationPro
  • Compact cart stripPro

03 / Cart line items

0 of 5 shipped

Planned 5

  • Cart line with quantity stepper
  • Cart line with stock warningPro
  • Subscription cart linePro
  • Bundle cart line with childrenPro
  • Cart line with gift optionsPro

04 / Order summaries

0 of 5 shipped

Planned 5

  • Itemised order summary
  • Collapsible order summaryPro
  • Order summary with duties and taxesPro
  • Order summary with installments previewPro
  • Order summary split into today and recurringPro

05 / Cart incentives

0 of 4 shipped

Planned 4

  • Free shipping progressPro
  • Promo code field with statesPro
  • Volume price breaksPro
  • Add-on suggestionsPro

06 / Single-page checkout

0 of 5 shipped

Planned 5

  • Single-page checkout with summary
  • Prefilled checkout for returning customersPro
  • Express-pay-first checkoutPro
  • Guest checkout with optional accountPro
  • Compact checkout for one itemPro

07 / Stepped checkout

0 of 5 shipped

Planned 5

  • Stepped checkout with review stepPro
  • Stepped checkout with editable completed stepsPro
  • Stepped checkout with multiple recipientsPro
  • Mobile checkout, one step per screenPro
  • B2B checkout with PO numberPro

08 / Shipping and delivery

0 of 4 shipped

Planned 4

  • Shipping address form
  • Saved address radio listPro
  • Delivery method cards with datesPro
  • Pickup point listPro

09 / Payment

0 of 4 shipped

Planned 4

  • Payment method radio panelsPro
  • Card payment form
  • Saved payment methods at checkoutPro
  • Gift card and store creditPro

10 / Order confirmation

0 of 3 shipped

Planned 3

  • Order confirmation receiptPro
  • Order confirmation with tracking timelinePro
  • Order confirmation with account creationPro