Back to components

Cart

Cart Line Item

One cart row: image, title and variant, a quantity stepper, the line total, and a remove control.

cart
quantity
remove

Preview

Aurora lamp

Aurora Lamp

$129.00

Installation

Run the shadcn CLI. Dependencies and the shared lib block come with it.

npx shadcn add cart-line-item

Usage

Import
import { CartLineItem } from "@/components/lumo/cart-line-item"
Example
<CartLineItem
  line={line}
  onQuantityChange={(lineId, qty) => updateQuantity(lineId, qty)}
  onRemove={(lineId) => removeLine(lineId)}
/>

Props

PropTypeDefaultRequired
lineCartLine-
Required
onQuantityChange(lineId, quantity) => void-
onRemove(lineId) => void-
localestring-

All props accept standard HTML attributes unless otherwise specified.

Dependencies

Lumo blocks

npm packages

lucide-react

Own every line

Lumo blocks copy into your repo. No runtime dependency, no lock-in. Edit the code to fit your product.