cart-minimal

Cart Minimal

A mini cart in a popover with the first few items, the subtotal and checkout.

Parts

PartFileDoes
CartMinimalCartMinimal.vueOpens a popover with the cart's first items, subtotal and checkout.

Styling

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

Install

npm packages
@lucide/vue

Built from

API reference

CartMinimal.vue

Opens a popover with the cart's first items, subtotal and checkout.

Props 17

PropTypeDefault
itemsCartLine[][]
currencystring'EUR'
maxVisibleItemsnumber3
title((count: number) => string)`Cart (${count})`
openLabelstring'Open cart'
countLabel((count: number) => string)count > 9 ? '9+' : String(count)
moreLabel((count: number) => string)`+ ${count} more ${count === 1 ? 'item' : 'items'}`
subtotalLabelstring'Subtotal'
taxNotestring'Shipping and taxes calculated at checkout.'
checkoutLabelstring'Checkout'
viewCartLabelstring'View cart'
emptyTitlestring'Your cart is empty'
emptyTextstring'Add some items to get started.'
quantityLabel((quantity: number) => string)—
localestring—
classClassValue—
openbooleanfalse

Events 3

EventPayload
update:openvalue: boolean
checkoutitems: CartLine[]
view-cart—

Recipe cart-minimal-title 1 group

Recipe hint 1 group

Recipe meta 1 group

Cart Minimal