cart-summary

Cart Summary

Cart card with an item count, linked product lines with images and line totals, subtotal, shipping (free, priced or worked out at checkout) and savings rows, the total with its tax note, and a secure checkout button that stays off while the cart is empty.

Parts

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

Styling

All of Cart Summary’s styles live in cart-summary.json. New to styling in Frontic UI? How styling works →

Install

npm packages
@lucide/vue

Built from

API reference

CartSummary.vue

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

Props 19

PropTypeDefault
lines*CartLine[]—
titlestring'Your cart'
descriptionstring—
currencystring'EUR'
shippingCentsnumber—
countLabel((count: number) => string)`${count} ${count === 1 ? 'item' : 'items'}`
quantityLabel((quantity: number) => string)`Qty ${quantity}`
subtotalLabelstring'Subtotal'
shippingLabelstring'Shipping'
freeShippingLabelstring'Free'
shippingPendingLabelstring'Calculated at checkout'
emptyLabelstring'Your cart is empty.'
savingsLabelstring'You save'
totalLabelstring'Total'
taxNotestring'Incl. VAT'
checkoutLabelstring'Secure checkout'
localestring—
surface'raised' | 'bare''raised'
classClassValue—

Events 1

EventPayload
checkout—

Data attributes 1

Data attributeValues
data-surface'raised' | 'bare'

Recipe hint 1 group

Recipe heading 1 group

Recipe meta 1 group

Recipe focus-ring 1 group

Cart Summary
State