cart-summary

Cart Summary

Cart card with an item count, product lines with images and line totals, subtotal, shipping and savings rows, the total with its tax note, and a secure checkout button.

States: Default

Parts

PartFileDoes
CartSummaryCartSummary.vueShows the cart's lines with subtotal, shipping and total, and a button to check out.

Styling

PartRecipe
CartSummaryhint
CartSummaryheading
CartSummarymeta

Install

Writes 3 files into components/sections/cart-summary/. For agents, npx @frontic/ui docs cart-summary prints this reference as markdown; the MCP server serves the same.

npm packages
@lucide/vue

Built from

API reference

CartSummary CartSummary.vue

Shows the cart's lines with subtotal, shipping and total, and a button to check out.

PropTypeDefault
lines*CartLine[]—
titlestring'Your cart'
descriptionstring—
currencystring'EUR'
shippingCentsnumber0
countLabel((count: number) => string)`${count} ${count === 1 ? 'item' : 'items'}`
quantityLabel((quantity: number) => string)`Qty ${quantity}`
subtotalLabelstring'Subtotal'
shippingLabelstring'Shipping'
freeShippingLabelstring'Free'
savingsLabelstring'You save'
totalLabelstring'Total'
taxNotestring'Incl. VAT'
checkoutLabelstring'Secure checkout'
localestring—
surface'raised' | 'bare''raised'
classClassValue—
EventPayload
checkout—
Data attributeValues
data-surface'raised' | 'bare'
Recipe hintSets
base: hint 2 properties
Recipe headingSets
base: heading 1 property
Recipe metaSets
base: meta 3 properties
Example