product-card-09-block
stackzero/product-card-09-blockFreeBlock
stackzero publishes no description for this item.
Install it
npx shadcn@latest add https://ui.stackzero.co/r/product-card-09-block.jsonSource
1"use client";23import ImageViewer from "@/components/commerce-ui/image-viewer-basic";4import PriceFormat from "@/components/commerce-ui/price-format-basic";5import StarRating_Fractions from "@/components/commerce-ui/star-rating-fractions";6import { Button } from "@/components/ui/button";78const DEFAULT_IMAGE_URL =9 "https://raw.githubusercontent.com/stackzero-labs/ui/refs/heads/main/public/placeholders/coffee-machine-02.jpg";1011interface Benefit {12 icon: React.ReactNode;13 title: string;14 description: string;15}1617interface ProductCard_09Props {18 imageUrl?: string;19 productName?: string;20 description?: string;21 price?: number;22 rating?: number;23 reviewCount?: number;24 warranty?: string;25 benefits?: Benefit[];26 onAddToCart?: () => void;27 onBuyNow?: () => void;28 currencyPrefix?: string;29}3031function ProductCard_09({32 description = "Premium espresso machine with 15-bar pressure, built-in grinder and milk frother for café-quality coffee at home",33 benefits = [34 {35 description: "Ready in under 30 seconds",36 icon: (37 <svg38 className="h-6 w-6"39 fill="none"40 stroke="currentColor"41 viewBox="0 0 24 24"42 >43 <path44 strokeLinecap="round"45 strokeLinejoin="round"46 strokeWidth={2}47 d="M13 10V3L4 14h7v7l9-11h-7z"48 />49 </svg>50 ),51 title: "Fast Brewing",52 },53 {54 description: "Self-cleaning function",55 icon: (56 <svg57 className="h-6 w-6"58 fill="none"59 stroke="currentColor"60 viewBox="0 0 24 24"61 >62 <path63 strokeLinecap="round"64 strokeLinejoin="round"65 strokeWidth={2}66 d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"67 />68 </svg>69 ),70 title: "Easy Cleaning",71 },72 {73 description: "Multiple brewing options",74 icon: (75 <svg76 className="h-6 w-6"77 fill="none"78 stroke="currentColor"79 viewBox="0 0 24 24"80 >81 <path82 strokeLinecap="round"83 strokeLinejoin="round"84 strokeWidth={2}85// … truncated
What it pulls in
Other registry items
Files it writes
More from stackzero
All 112 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| address-01-blockaddress-01-block | stackzero | Blocks | Free | 4 deps | |
| address-02-blockaddress-02-block | stackzero | Blocks | Free | 4 deps | |
| address-03-blockaddress-03-block | stackzero | Blocks | Free | 4 deps | |
| banner-01-blockbanner-01-block | stackzero | Blocks | Free | no deps | |
| banner-02-blockbanner-02-block | stackzero | Blocks | Free | no deps | |
| banner-03-blockbanner-03-block | stackzero | Blocks | Free | no deps | |
| banner-04-blockbanner-04-block | stackzero | Blocks | Free | no deps | |
| banner-05-blockbanner-05-block | stackzero | Blocks | Free | no deps |
