Cart Item Detailed
Cart lines with large thumbnails, the line total with any saving, quantity buttons and a remove action.
Parts
| Part | File | Does |
|---|---|---|
| CartItemDetailed | CartItemDetailed.vue | Lists the cart's items with price per unit, a quantity stepper and a remove button. |
Styling
All of Cart Item Detailed’s styles live in cart-item-detailed.json. New to styling in Frontic UI? How styling works →
Install
- npm packages
- @lucide/vue
- reka-ui
Built from
API reference
Lists the cart's items with price per unit, a quantity stepper and a remove button.
Props 8
| Prop | Type | Default | |
|---|---|---|---|
| maxQuantity | number | 10 | |
| |||
| removeLabel | ((name: string) => string) | `Remove ${name}` | |
| |||
| decreaseLabel | ((name: string) => string) | `Decrease quantity of ${name}` | |
| |||
| increaseLabel | ((name: string) => string) | `Increase quantity of ${name}` | |
| |||
| eachLabel | ((price: string) => string) | `${price} each` | |
| |||
| locale | string | — | |
| |||
| class | ClassValue | — | |
| |||
| items | CartLine[] | [] | |
| |||
Events 1
| Event | Payload | |
|---|---|---|
| update:items | value: CartLine[] | |
| ||