››cart-item-compact
Cart Item Compact
Cart lines with a quantity field and a remove button.
Parts
| Part | File | Does |
|---|---|---|
| CartItemCompact | CartItemCompact.vue | Lists the cart's items with a quantity control and a remove button. |
Styling
All of Cart Item Compact’s styles live in cart-item-compact.json. New to styling in Frontic UI? How styling works →
Install
- npm packages
- @lucide/vue
Built from
API reference
Lists the cart's items with a quantity control and a remove button.
Props 6
| Prop | Type | Default | |
|---|---|---|---|
| maxQuantity | number | 10 | |
| |||
| removeLabel | ((name: string) => string) | `Remove ${name}` | |
| |||
| quantityAriaLabel | ((name: string) => string) | `Quantity of ${name}` | |
| |||
| locale | string | — | |
| |||
| class | ClassValue | — | |
| |||
| items | CartLine[] | [] | |
| |||
Events 1
| Event | Payload | |
|---|---|---|
| update:items | value: CartLine[] | |
| ||
Recipe cart-item-compact 1 group
Recipe cart-item-compact-image 1 group
size spacing.184.5rem
Recipe line-title 1 group
typography typography.ui500 0.875rem/1.43 'Inter Variable', Inter, sans-serif
lineHeight tight
Recipe meta 1 group
textColor colors.muted-foreground#66666f
typography typography.caption500 0.75rem/1.33 'Inter Variable', Inter, sans-serif
fontWeight normal
Recipe quiet-action 1 group
textColor colors.muted-foreground#66666f
Cart Item Compact