cart-compact

Cart Compact

A mini cart in a side sheet, with quantity controls, free-shipping progress, the subtotal and checkout.

Parts

PartFileDoes
CartCompactCartCompact.vueOpens a side sheet with the cart's items, quantity controls, free-shipping progress and checkout.

Styling

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

Install

npm packages
@lucide/vue

Built from

API reference

CartCompact.vue

Opens a side sheet with the cart's items, quantity controls, free-shipping progress and checkout.

Props 21

PropTypeDefault
currencystring'EUR'
freeShippingThresholdnumber15000
title((count: number) => string)`Cart (${count})`
openLabelstring'Open cart'
countLabel((count: number) => string)count > 9 ? '9+' : String(count)
closeLabelstring'Close'
freeShippingProgressLabelstring'Add {amount} more for free shipping'
freeShippingReachedLabelstring'You qualify for free shipping!'
freeShippingProgressAriastring'Progress to free shipping'
subtotalLabelstring'Subtotal'
taxNotestring'Shipping and taxes calculated at checkout.'
checkoutLabelstring'Checkout'
continueLabelstring'Continue shopping'
emptyTitlestring'Your cart is empty'
emptyTextstring'Add some items to get started.'
maxQuantitynumber—
removeLabel((name: string) => string)—
localestring—
classClassValue—
itemsCartLine[][]
openbooleanfalse

Events 3

EventPayload
update:openvalue: boolean
checkoutitems: CartLine[]
update:itemsvalue: CartLine[]

Recipe part-title-lg 1 group

Recipe hint 1 group

Recipe meta 1 group

Recipe note-positive 1 group

Cart Compact