Product List
Fetch and display multiple products. Each product gets its own Product context for isolated state management.
Interactive Demo
Try different product list layouts using the variant switcher. Each product is automatically wrapped in its own Product context:
Loading playground...
ProductList Props
limitnumberMaximum number of products to fetch. Defaults to 10.
childrenReactNoderequiredTemplate for each product card. Receives Product context automatically.
gridClassNamestringCSS classes for the grid layout. Defaults to a responsive grid layout.
classNamestringCSS classes for the container element.
ProductCard Props
variant"default" | "overlay" | "minimal"Card style variant. 'overlay' shows info over image, 'minimal' is compact, 'default' has padding.
showPricebooleanWhether to display the product price. Defaults to false.
showCategorybooleanWhether to display the product category/tag. Defaults to true.
onClick() => voidClick handler for the card. When provided, renders as a button.
classNamestringAdditional CSS classes for the card container.
Installation
npx merchify-cli init
This CLI will guide you through setting up Merchify components in your project