Arc
ComponentsBlocksScreensDocsPricingTry the demo
Get Pro
Saved

Docs

IntroductionInstallationThemingMotionAI and MCPChangelog

Components136

ButtonAction buttonSplit buttonButton groupFloating button groupExpanding button groupCopy buttonAction swapIcon morphConfirm morphTheme switcher

Hold to confirmSwipe actionsReactions

Dropdown menuContext menuUser menu

InputTextareaPassword fieldPassword strengthSearch fieldExpanding searchInline edit

Number fieldMoney inputPhone inputScrub inputTag inputMention inputShortcut recorder

SelectComboboxMulti-selectMorph selectChip group

Radio cardsBilling toggleCheckboxRadio groupSwitchSegmented controlRatingToggle group

SliderElastic sliderRange histogram sliderRuler sliderWindow rangeNewProLens rangeNewPro

CalendarDate pickerDate range pickerTime pickerColor pickerEmoji pickerPro

Rich text editorSignature padFile dropzoneAvatar uploadPro

TabsBreadcrumbPaginationMega menu morphProTable of contents progressPro

Scroll areaAccordionExpandable cardResizable panelsExpandable text

DialogDrawerBottom sheetPopoverHover cardTooltipShare accessProConfirm popoverPro

AlertToastToast stackAnnouncement barCookie consentUndo toastPro

ProgressSkeletonStepperCountdownUsage meterOnboarding checklist

AvatarAvatar groupBadgePresence stackPro

CardMetric cardEmpty stateMetric tickerPro

Line chartBar chartDonut chartStreamgraphBrush chartWaffle chartSlope chartSparklineGaugeActivity heatmapAnimated counterRidgelineTreemapSplit barPro

SunburstProSankey flowProFunnel chartProRadar chartProRealtime streamProRace bar chartProData gridPro

Sortable data tableTree tableTree viewReorderable listFilter toolbarCode blockJSON viewer

TimelineComment threadChat thread

Image compareCarouselCard stack

Text revealIn-view titleText morphText shimmer

Blocks122

KPI drilldownProMetric explorerProRevenue explorerProMRR waterfallProCohort retentionProUsage forecastProJourney flowProUptime statusProPivot builderProChoropleth explorerProConnected scatterProHorizon chartProAccount healthPro

Budget variancePro

Small multiplesProLine replayPro

AI chatProAI composerProAI answerProModel pickerProModel arenaProPrompt studioProDocument extractionProAgent memoryProAI side panelProAI inline editProResearch runProAI insight cardProCatch upProAI feature launchProAI search barProAI setup wizardProCall insightsProLead scoringPro

Agent runProAgent tasksProAgent approvalsProAgent routinesProAgent orchestratorProMCP serversProKnowledge baseProEval suiteProAgent builderProAgent galleryPro

SidebarPro4Page headerCommand paletteNotification centerSelection toolbarProEmpty statesSearch resultsPro

Login and sign up5, free and Pro variantsOnboarding illustrationProOTP inputMulti-step formProTwo-factor setupProMagic linkPro

Settings pageProSettings commandProSecurity settingsProBilling overviewProUsage billingProCancel flowProOnboarding surveyProSpend alertPro

Team membersProInvite peopleProRoles and permissionsProProfile pagePro

API keysProWebhooksProIntegrationsProImport wizardNewProEnvironment variablesProDomain verifyProWebhook testerPro

Plan comparisonPricing calculatorProUsage pricingProCart drawerProCheckout summaryProLive checkoutProSeat managerProCredit top-upPro

Wallet cardProDelivery trackerProSeat mapPro

Activity feedProSupport widgetProFeature votingPro

File uploadMedia playerPro

Availability pickerProRelease readinessProFeedback boardProSmart schedulerProTask breakdownProGoal trackerPro

Hero sectionHero signupPro

Scroll storyProSpotlight gridProFeature bentoProComparison table

Logo marqueeStudio perspectivesProStats band

Changelog feedFAQ sectionContact sectionTeam showcaseProBlog grid

Site headerSite footerCTA sectionNewsletter signup

Activity terrainProRevenue globeProCustomer galaxyProSemantic zoomProLayout morphProExploded viewPro

Screens14

Metrics dashboardProMarket terminalPro

Kanban boardProProject boardProGantt timelinePro

Week calendarProMonth calendarNewPro

Team directoryPro

Inbox triageProSupport conversationProHelp centerPro

Product listingProProduct detailProInvoice studioPro

Special components106

Share sheetProAction morphProMorph navProDockProLiquid tab barProOrbit menuPro

Glass menuProGlass segmentedProGlass cardProGlass tab barPro

Sheet stackProWallet stackProControl centerProHolo cardProCard to articleProLink unfurlPro

Product galleryProLightbox galleryProPhoto gridProCover flowPro

Voice orbProNow playingProVoice recorderPro

Booking pillProActivity ringsProTime dialProDate reelPro

Keycap keyboardProSlot textSand textProTypewriter terminalPro

Stretch refreshProMorph loaderProSkeleton morphProBlack holeProCharge sessionPro

Sticker peelProTicket tearProPage curlProOrbit logosProPrize wheelPro

Dot gridProImage trailProGravity wellProInk fluidProCursor trail drawPro

Agent statusProTool callProAgent planProAgent timelineProContext windowProReasoning blockProSource cardsProModel cardProAI workflowProCode suggestionProGhost textProImage generationProDictation buttonProSpeech playerProMeeting summaryProReply draftProAgent handoffProPII redactionProResponse feedbackProLLM cost calculatorProProvider keysProGeneration statsProAI translateProTL;DR toggleProConnector setupProSmart form fillProEnrich columnProTicket routerProAsk your dataProAgent cursorProProvider statusProTraining runProAI commandProStarter promptsProAI mascotProImage revealProAI sparkProPixel mascotProGhost mascotProCube mascotProTone tunerProUpgrade promptProReferral cardProTrial bannerProTeam switcherProLive visitorsProSocial proof toastProInstall snippetPro

Data flowProPayment flowProDNS resolutionProModel trainingProMulti-region failoverProVector searchProBranch graphProAgent loopProMixture of expertsProSpeculative decodingProPrompt cacheProReasoning treePro
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 · 122 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