Checkout summary

Checkout summary is a ready-made neobrutalist section (block) from Cruise UI, built from its components. A checkout summary block: line items, subtotal, delivery, VAT (7.5% by default), a discount code, the total, a payment method radio group (card, bank transfer, pay on delivery) and a "Pay ₦X" button. Totals are worked out from props in naira; no payment SDK. Install it with npx shadcn@latest add @cruiseui/cruise-checkout-summary.

Install

Terminal

npx shadcn@latest add @cruiseui/cruise-checkout-summary

First time? Installation shows the one-off components.json setup (the @cruiseui registry) and how to turn the theme on.

Example

Corners

Order summary

  • Ankara tote bag × 1₦18,500
  • Adire scarf × 2₦15,000
Subtotal
₦33,500
Delivery
₦2,500
VAT (7.5%)
₦2,513
Total
₦38,513
Payment method

Secure payment. Your card details never touch our servers.

When to use it

When to use

The last step of a shop or booking checkout.

When not to

Showing a receipt after payment (use a Table or Card).

Props

CruiseCheckoutSummary

PropTypeDefaultDescription
title?ReactNode"Order summary"—
items?CruiseLineItem[]DEFAULT_ITEMS—
delivery?number2500Delivery fee in naira; 0 shows "Free".
vatRate?number0.075VAT as a fraction (0.075 = 7.5%), charged on items after the discount; 0 hides the line.
methods?CruisePaymentMethod[]["card", "transfer", "delivery"]Payment methods to offer, in order.
methodLabels?Partial<Record<CruisePaymentMethod, string>>——
onApplyDiscount?((code: string) => number | Promise<number | null> | null)—Checks a code and returns the naira off, or null if it isn't valid. Leave out to hide the field.
onPay?((result: CruiseCheckoutResult) => void)——
pending?booleanfalse—
trustNote?ReactNode"Secure payment. Your card details never touch our servers."The reassurance line under the button.
headingLevel?2 | 32—
className?string——

Accessibility

  • Totals are a description list (<dl>), so each amount is read with its label.
  • Payment methods are native radios in a fieldset with a legend.
  • The pay button says the amount: "Pay ₦36,738".