| currency | string | 'EUR' |
- Name
- currency
- Description
ISO 4217 code for the totals; the first item's currency takes precedence. - Type
string- Default
- 'EUR'
|
| freeShippingThreshold | number | 15000 |
- Name
- freeShippingThreshold
- Description
Subtotal in cents at which shipping turns free; the progress bar fills towards it. - Type
number- Default
- 15000
|
| title | ((count: number) => string) | `Cart (${count})` |
- Name
- title
- Description
Builds the sheet'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 sheet; 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)
|
| closeLabel | string | 'Close' |
- Name
- closeLabel
- Description
Screen-reader name of the button that closes the sheet. - Type
string- Default
- 'Close'
|
| freeShippingProgressLabel | string | 'Add {amount} more for free shipping' |
- Name
- freeShippingProgressLabel
- Description
Shown above the progress bar until shipping is free; {amount} stands for the amount still missing. - Type
string- Default
- 'Add {amount} more for free shipping'
|
| freeShippingReachedLabel | string | 'You qualify for free shipping!' |
- Name
- freeShippingReachedLabel
- Description
Shown above the progress bar once the subtotal reaches free shipping. - Type
string- Default
- 'You qualify for free shipping!'
|
| freeShippingProgressAria | string | 'Progress to free shipping' |
- Name
- freeShippingProgressAria
- Description
Screen-reader name of the free-shipping progress bar. - Type
string- Default
- 'Progress to free shipping'
|
| subtotalLabel | string | 'Subtotal' |
- Name
- subtotalLabel
- Description
Shown next to the subtotal in the sheet's footer. - 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'
|
| continueLabel | string | 'Continue shopping' |
- Name
- continueLabel
- Description
Shown on the buttons that close the sheet so the shopper keeps browsing. - Type
string- Default
- 'Continue shopping'
|
| 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.'
|
| maxQuantity | number | — |
- Name
- maxQuantity
- Description
Highest quantity a shopper can set on one item. - Type
number- Default
- —
|
| removeLabel | ((name: string) => string) | — |
- Name
- removeLabel
- Description
Builds the screen-reader name of an item's remove button from the item's name. - Type
(name: string): 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
- —
|
| items | CartLine[] | [] |
- Name
- items
- Description
The cart's lines; quantity changes and removals update it. - Type
CartLine[]- Default
- []
|
| open | boolean | false |
- Name
- open
- Description
Whether the cart sheet is open. - Type
boolean- Default
- false
|