Skip to main content


The CartLineImage component renders an Image component for the cart line merchandise's image. It must be a descendent of a CartLineProvider component.

Example code

import {CartLineProvider, useCart, CartLineImage} from '@shopify/hydrogen';

export function App() {
const {lines} = useCart();

return => {
return (
<CartLineProvider key={} line={line}>
<CartLineImage />

Component type

The CartLineImage component is a client component, which means that it renders on the client. For more information about component types, refer to React Server Components.