Arc
ComponentsBlocksDocsPricingTry the demo
Get Pro
Introduction
Installation
Theming
Motion
AI and MCP
Changelog
Metrics dashboardPro
KPI drilldownPro
Metric explorerPro
Revenue explorerPro
MRR waterfallPro
Cohort retentionPro
Usage forecastPro
Journey flowPro
Uptime statusPro
Pivot builderNewPro
Choropleth explorerPro
Connected scatterPro
Horizon chartPro
Account healthPro
Market terminalPro
Budget variancePro
Small multiplesPro
Line replayPro
AI chatPro
AI composerPro
AI answerPro
Model pickerPro
Model arenaPro
Prompt studioPro
Document extractionPro
Agent memoryPro
AI side panelPro
AI inline editPro
Research runPro
AI insight cardPro
Catch upPro
AI feature launchPro
AI search barPro
AI setup wizardPro
Call insightsPro
Lead scoringPro
Agent runPro
Agent tasksPro
Agent approvalsPro
Agent routinesPro
Agent orchestratorPro
MCP serversPro
Knowledge basePro
Eval suitePro
Agent builderPro
Agent galleryPro
SidebarPro4
Page header
Command palette
Notification center
Selection toolbarPro
Empty states
Search resultsPro
Login and sign up5, free and Pro variants
Onboarding illustrationPro
OTP input
Multi-step formPro
Two-factor setupPro
Magic linkPro
Settings pagePro
Settings commandPro
Security settingsPro
Billing overviewPro
Usage billingPro
Cancel flowPro
Onboarding surveyPro
Spend alertPro
Team membersPro
Invite peoplePro
Team directoryPro
Roles and permissionsPro
Profile pagePro
API keysPro
WebhooksPro
IntegrationsPro
Environment variablesPro
Domain verifyPro
Webhook testerPro
Plan comparison
Pricing calculatorPro
Usage pricingPro
Cart drawerPro
Checkout summaryPro
Live checkoutPro
Seat managerPro
Credit top-upPro
Invoice studioPro
Wallet cardPro
Delivery trackerPro
Product listingPro
Product detailPro
Seat mapPro
Activity feedPro
Inbox triagePro
Support conversationPro
Support widgetPro
Help centerPro
Feature votingPro
File upload
Media playerPro
Week calendarPro
Availability pickerPro
Project boardPro
Gantt timelineNewPro
Release readinessPro
Kanban boardPro
Feedback boardPro
Smart schedulerPro
Task breakdownPro
Goal trackerPro
Hero section
Hero signupPro
Scroll storyPro
Spotlight gridPro
Feature bentoPro
Comparison table
Logo marquee
Studio perspectivesPro
Stats band
Changelog feed
FAQ section
Contact section
Team showcasePro
Blog grid
Site header
Site footer
CTA section
Newsletter signup
Activity terrainPro
Revenue globePro
Customer galaxyPro
Semantic zoomPro
Layout morphPro
Exploded viewPro
What’s new4 new
BlocksCheckout summary

Checkout summary

Pro

An order summary with a promo code that becomes a chip, discount and tax lines, and pay button states.

Live block · sample data

When to use

  • The last step before a hosted checkout such as a Stripe session redirect.
  • A single product purchase with launch discounts or promo codes.
  • A pricing page side panel that confirms the final total.

When not to use

  • Use checkout-flow when you collect shipping and card details in the page.
  • Use cart-drawer for a cart with several items and quantities.
  • Use billing-overview for an existing subscription's invoices and plan.

Installation

Pro source and install commands unlock with a Pro plan.

Usage

Use this as a starting point and replace the sample data with your own.

example.tsx
1import { CheckoutSummary } from "@/components/arc/blocks/checkout-summary/checkout-summary";2 3export function Checkout() {4  return (5    <CheckoutSummary6      item={{ name: "Arc Pro", description: "All components and blocks", price: 199, period: "one payment" }}7      adjustments={[{ id: "launch", label: "Launch price", amount: -50, note: "38 of 50 left" }]}8      coupon={{9        onApply: async code => {10          const res = await fetch("/api/coupon", { method: "POST", body: JSON.stringify({ code }) });11          return res.json();12        },13      }}14      tax={{ label: "Tax", note: "Calculated at checkout" }}15      form={{ action: "/api/checkout", fields: { plan: "pro" } }}16      payLabel={total => `Continue to payment, ${total}`}17    />18  );19}
Built fromMotion

API reference

3 parts. The first is the root.

CheckoutSummary

An order summary for the last step before payment, with discount lines, a promo code field, a counting total, and a pay button that moves from idle to processing to paid. Without item it renders a sample order with simulated code and payment.

PropTypeDefaultDescription
itemCheckoutSummaryItem–The product: name, price, and optional description, period, and media. Omit it to render the built-in sample order.
adjustmentsCheckoutSummaryLine[][]Automatic lines, each with id, label, amount (negative for a discount), and optional note.
coupon{ onApply: (code: string) => Promise<CheckoutCouponResult>; placeholder?: string }–Enables the promo code field. onApply resolves { ok: true, code, label?, amount } or { ok: false, message }. Validate on your server.
tax{ label: string; rate?: number; note?: string }–Tax line. With rate the amount is computed from the discounted subtotal; without it note, or Calculated at checkout, is shown.
currencystring"$"Symbol before amounts.
titlestring"Order summary"Heading, also the section's accessible name.
payLabel(total: string) => stringtotal => `Pay ${total}`Pay button label. Receives the formatted total.
onPay() => Promise<void>–Client-side payment. Resolve to show success, reject to show an error and Try again.
form{ action: string; fields?: Record<string, string> }–Posts a native form instead, such as to a route that creates a hosted checkout session. fields become hidden inputs.
secureNoteReactNode"Encrypted payment"Line beside the lock under the button.
successLabelstring"Paid"Button label once onPay resolves.
disabledbooleanfalseShows the button but blocks payment, such as before checkout opens.
footnoteReactNode–Small print under the button.
classNamestring–Extra class on the root section.

CheckoutSummaryItem

The product being bought.

PropTypeDefaultDescription
nameRequiredstring–Product name, truncated on one line.
descriptionstring–Short line under the name.
priceRequirednumber–Price before adjustments. Shown as the subtotal.
periodstring–Note under the price, such as one payment or per year.
mediaReactNode–Thumbnail or mark in a 44px tile.

CheckoutSummaryLine

An adjustment line.

PropTypeDefaultDescription
idRequiredstring–Stable key. "coupon" is used by the applied code line.
labelRequiredstring–Line label.
amountRequirednumber–Amount added to the subtotal. Negative for a discount, which is tinted.
notestring–Short note under the label, such as 38 of 50 left.

Keyboard interactions

Enter
In the promo code field, applies the code. An empty field keeps focus.
EnterorSpace
On the remove button of an applied code, removes it and returns focus to the field.

Accessibility

  • The block is a section labelled by title with an h3 heading.
  • The promo field has a visually hidden label. Errors set aria-invalid, aria-describedby, and a role="alert" message.
  • The applied code chip has a remove button labelled Remove code followed by the code.
  • The pay button is aria-live="polite", so Processing, Paid, and Try again are announced. A payment error adds a role="alert" line.
  • The total has visually hidden formatted text, while the rolling digits are aria-hidden.

Motion

  • Adjustment and coupon lines open with a height spring and fade.
  • The promo form swaps to the applied chip with a small scale and blur. An invalid code shakes the field horizontally for 360ms.
  • The total rolls through AnimatedCounter. The pay button's label and icon swap with a rise and blur on each state change, and a spinner turns while processing.
  • Reduced motion skips the shake, makes lines appear instantly, reduces swaps to fades, and slows the spinner to 1.6s per turn.

Responsive behavior

  • The card is up to 440px wide and fills narrower containers. Padding scales between 20px and 28px with the viewport.
  • The product name truncates on one line; the price column stays unwrapped.
  • Hover styles apply only on fine pointers. Buttons scale down slightly on press.

Performance

  • One pageshow listener per instance. No timers except those in the sample handlers.
  • Only the total uses AnimatedCounter. Line and button animations run on state changes only.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Choose it for a one-product order summary before payment. Use checkout-flow for a multi-step checkout with address and payment fields, and cart-drawer for many items.
  • Pass either onPay for a client-side payment or form for a server route that redirects to a hosted checkout. With form, the button shows Processing on submit and resets on back-forward cache restore.
  • Always pass item in production. Without it the block uses a sample order, a WELCOME10 test code, and a simulated payment.
  • Coupon amounts are positive in CheckoutCouponResult and are subtracted. The subtotal never goes below zero; decimals switch to two when any amount is fractional.
/components/blocks/checkout-summary/markdown

The full library index for assistants is at /llms.txt.

Related

Cart drawerProBlockProducts fly into the cart, counts roll, and a drawer handles quantities, shipping progress, and checkout.Billing toggleComponentA monthly and yearly switch with a savings badge and prices that roll to the new amount.Action buttonComponentA compact button for frequent toolbar actions.Money inputComponentA currency field with live grouping, stable width, rolling digits, and minor-unit output.
PreviousAI chatNextSite header
Arc · 134 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • API reference
  • Keyboard
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown

Order summary

Field notes, yearlyUnlimited notebooks and sync for one person
$96.00per year
Subtotal
$96.00
Yearly billingTwo months free
−$24.00
Sales tax (8.5%)
$6.12
Total
$78.12$78.120012345678900123456789.0012345678900123456789

Encrypted payment