0
Sponsor

Product Card

A product display card with image and details.

Installation

$ pnpm dlx shadcn@latest add @emailcn/mjml-product-card

Usage

import { ProductCard } from "@/components/emails/product-card";
<ProductCard {...ProductCard.PreviewProps} />

API Reference

Product Card

PropTypeDefaultDescription
themeEmailThemedefaultThemeEmail theme styling
productImageUrlstring-Product image URL
productNamestring-Product name
productDescriptionstring-Product description
pricestring-Product price
ctaLabelstring-CTA button label
ctaHrefstring"#"CTA button link