| items | CartLine[] | [] |
- Name
- items
- Description
The cart's lines; the popover lists the first few. - Type
CartLine[]- Default
- []
|
| currency | string | 'EUR' |
- Name
- currency
- Description
ISO 4217 code for the totals; the first item's currency takes precedence. - Type
string- Default
- 'EUR'
|
| maxVisibleItems | number | 3 |
- Name
- maxVisibleItems
- Description
How many items the popover lists before summing up the rest in one line. - Type
number- Default
- 3
|
| title | ((count: number) => string) | `Cart (${count})` |
- Name
- title
- Description
Builds the popover's heading from the total quantity in the cart. - Type
(count: number): string- Default
- `Cart (${count})`
|
| openLabel | string | 'Open cart' |
- Name
- openLabel
- Description
Screen-reader name of the cart button that opens the popover; the count badge's text follows it. - Type
string- Default
- 'Open cart'
|
| countLabel | ((count: number) => string) | count > 9 ? '9+' : String(count) |
- Name
- countLabel
- Description
Builds the badge on the cart button from the total quantity, e.g. 9+. - Type
(count: number): string- Default
- count > 9 ? '9+' : String(count)
|
| moreLabel | ((count: number) => string) | `+ ${count} more ${count === 1 ? 'item' : 'items'}` |
- Name
- moreLabel
- Description
Builds the line under the list from the number of items left out, e.g. + 2 more items. - Type
(count: number): string- Default
- `+ ${count} more ${count === 1 ? 'item' : 'items'}`
|
| subtotalLabel | string | 'Subtotal' |
- Name
- subtotalLabel
- Description
Shown next to the subtotal in the popover. - Type
string- Default
- 'Subtotal'
|
| taxNote | string | 'Shipping and taxes calculated at checkout.' |
- Name
- taxNote
- Description
Shown under the subtotal, e.g. that shipping and taxes follow at checkout. - Type
string- Default
- 'Shipping and taxes calculated at checkout.'
|
| checkoutLabel | string | 'Checkout' |
- Name
- checkoutLabel
- Description
Shown on the button that starts checkout. - Type
string- Default
- 'Checkout'
|
| viewCartLabel | string | 'View cart' |
- Name
- viewCartLabel
- Description
Shown on the button that emits view-cart to open the full cart. - Type
string- Default
- 'View cart'
|
| emptyTitle | string | 'Your cart is empty' |
- Name
- emptyTitle
- Description
Shown as the heading when the cart is empty. - Type
string- Default
- 'Your cart is empty'
|
| emptyText | string | 'Add some items to get started.' |
- Name
- emptyText
- Description
Shown under the heading when the cart is empty. - Type
string- Default
- 'Add some items to get started.'
|
| quantityLabel | ((quantity: number) => string) | — |
- Name
- quantityLabel
- Description
Builds the quantity text next to the variant, e.g. Qty 2. - Type
(quantity: number): string- Default
- —
|
| locale | string | — |
- Name
- locale
- Description
BCP 47 locale the prices are formatted in; the ConfigProvider's when left out. - Type
string- Default
- —
|
| class | ClassValue | — |
- Name
- class
- Description
Classes added to the part's own element, after its recipe classes. - Type
null | string | false | Record<string, any> | ClassValue[]- Default
- —
|
| open | boolean | false |
- Name
- open
- Description
Whether the cart popover is open. - Type
boolean- Default
- false
|