Product Card
An e-commerce product card with an image carousel, colour swatches, size selector and a price footer. Supports image carousels, an optional wishlist toggle, color swatches, size selector, stats rows, and a price + CTA footer. A description (when given) stays tucked behind a "View Details" toggle instead of always showing.
Installation
npx stepwise-ui add product-card
Basic
With Stats
With Color & Size
Props
PropTypeDescription
imagesstring[]Image URLs. Shows a dot carousel when more than one.
imagePositionstringCSS object-position for the image. Default "center" - tune when the product isn't centered in the source photo.
previewIconReact.ReactNodeShown over a themed gradient when images is empty - pass a large emoji or icon.
namestringProduct name.
tagProductCardTagLabel chip shown next to the name.
descriptionstringRevealed behind a "View Details" toggle - not shown up front.
pricenumberNumeric price.
currencystringCurrency symbol. Default "$".
colorsstring[]Hex color swatches, rendered with ColorSwatch.
sizesstring[]Size labels (XS, S, M…).
statsProductStat[]Stats row (buyers, rating, warranty…).
showWishlistbooleanShows a wishlist heart icon on the image. Default false - opt in per card.
ctaLabelstringCTA button label. Default "Add to Cart".
onAddToCart() => voidCTA click handler.
onWishlist() => voidWishlist toggle handler.