BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/stackzero/product-card-10-block

product-card-10-block

stackzero/product-card-10-block
FreeBlock

stackzero publishes no description for this item.

Install it

npx shadcn@latest add https://ui.stackzero.co/r/product-card-10-block.json

Source

/components/commerce-ui/blocks/product-card/product-card-10.tsxui.stackzero.co/r/product-card-10-block.json · first 6 KB
1"use client";
2
3import ImageViewer from "@/components/commerce-ui/image-viewer-basic";
4import PriceFormat_Sale from "@/components/commerce-ui/price-format-sale";
5import { Button } from "@/components/ui/button";
6
7const DEFAULT_IMAGE_URL =
8 "https://raw.githubusercontent.com/stackzero-labs/ui/refs/heads/main/public/placeholders/handcream-01.jpg";
9
10interface ProductCard_10Props {
11 imageUrl?: string;
12 newProduct?: boolean;
13 productName?: string;
14 description?: string;
15 price?: number;
16 originalPrice?: number;
17 availableStock?: number;
18 volume?: string;
19 skinType?: string;
20 benefits?: string[];
21 ingredients?: string[];
22 onAddToCart?: () => void;
23 onBuyNow?: () => void;
24 onLearnMore?: () => void;
25 currencyPrefix?: string;
26}
27
28function ProductCard_10({
29 availableStock = 42,
30 benefits = [
31 "24h Hydration",
32 "Non-greasy formula",
33 "Repairs damaged skin",
34 "Dermatologist tested",
35 ],
36 currencyPrefix = "$",
37 description = "Ultra-hydrating hand cream formulated with shea butter, aloe vera, and vitamin E. Absorbs quickly for immediate relief of dry skin, leaving hands soft and nourished without greasy residue. Perfect for daily use and harsh weather protection.",
38 imageUrl = DEFAULT_IMAGE_URL,
39 ingredients = ["Shea Butter", "Aloe Vera", "Vitamin E", "Jojoba Oil"],
40 newProduct = true,
41 onAddToCart = () => {},
42 onBuyNow = () => {},
43 onLearnMore = () => {},
44 originalPrice = 29.99,
45 price = 24.99,
46 productName = "NatureSilk Intensive Hand Cream",
47 skinType = "All skin types",
48 volume = "75ml / 2.5 fl oz",
49}: ProductCard_10Props = {}) {
50 const isLowStock = availableStock <= 20;
51 const hasDiscount = originalPrice > price;
52
53 return (
54 <div className="group flex flex-col overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm transition-all duration-300 hover:shadow-md sm:flex-row dark:border-gray-800 dark:bg-gray-900">
55 {/* Image section */}
56 <div className="relative h-52 w-full bg-gradient-to-br from-amber-50 via-lime-50 to-emerald-50 sm:h-auto sm:w-2/5 dark:from-gray-900 dark:via-emerald-950/20 dark:to-gray-900">
57 {newProduct && (
58 <div className="absolute top-3 left-3 z-10 flex items-center justify-center">
59 <div className="rounded-full bg-emerald-600 px-3 py-1 text-xs font-bold tracking-wider text-white uppercase shadow-md">
60 New Formula
61 </div>
62 </div>
63 )}
64
65 {/* Soft glow effect */}
66 <div className="absolute inset-0">
67// … truncated

What it pulls in

Other registry items

  • button
  • https://ui.stackzero.co/r/image-viewer-basic.json
  • https://ui.stackzero.co/r/price-format-sale.json

Files it writes

  • @/components/commerce-ui/blocks/product-card/product-card-10.tsx

Facts

Registry
stackzero
Type
registry:block
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
today

Go to the source

ui.stackzero.co stackzero-labs/ui on GitHub Raw registry item This item as JSON

More from stackzero

All 112 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
address-01-blockaddress-01-blockstackzeroBlocksFree4 deps
address-02-blockaddress-02-blockstackzeroBlocksFree4 deps
address-03-blockaddress-03-blockstackzeroBlocksFree4 deps
banner-01-blockbanner-01-blockstackzeroBlocksFreeno deps
banner-02-blockbanner-02-blockstackzeroBlocksFreeno deps
banner-03-blockbanner-03-blockstackzeroBlocksFreeno deps
banner-04-blockbanner-04-blockstackzeroBlocksFreeno deps
banner-05-blockbanner-05-blockstackzeroBlocksFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex