BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/delta-components/product-card

product-card

delta-components/product-card
FreeComponent

delta-components publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by delta-components on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://deltacomponents.dev/r/product-card.json

Source

components/ui/product-card.tsxdeltacomponents.dev/r/product-card.json · first 6 KB
1"use client"
2
3import * as React from "react"
4
5import { cn } from "@/lib/utils"
6
7/* ------------------------------------------------------------------
8 * Context for sharing state between compound components
9 * ------------------------------------------------------------------ */
10
11type ProductCardVariant = "default" | "inner"
12type ProductCardSize = "default" | "sm" | "small" | "lg" | "large"
13
14interface ProductCardContextValue {
15 variant: ProductCardVariant
16 size: ProductCardSize
17 animated: boolean
18}
19
20const ProductCardContext = React.createContext<ProductCardContextValue | null>(
21 null
22)
23
24function useProductCardContext() {
25 const context = React.useContext(ProductCardContext)
26 if (!context) {
27 throw new Error(
28 "ProductCard compound components must be used within <ProductCard>"
29 )
30 }
31 return context
32}
33
34function normalizeSize(size: ProductCardSize): "default" | "sm" | "lg" {
35 if (size === "small") return "sm"
36 if (size === "large") return "lg"
37 return size as "default" | "sm" | "lg"
38}
39
40/* ------------------------------------------------------------------
41 * ProductCard (root)
42 * ------------------------------------------------------------------ */
43
44interface ProductCardProps extends React.HTMLAttributes<HTMLDivElement> {
45 /** Card variant - "default" shows content below image, "inner" shows content inside */
46 variant?: ProductCardVariant
47 /** Card size - "sm" | "small", "default", or "lg" | "large" */
48 size?: ProductCardSize
49 /** Enable hover/active animation on image - defaults to true */
50 animated?: boolean
51 /** Callback when the card is clicked */
52 onCardClick?: () => void
53}
54
55const ProductCard = React.forwardRef<HTMLDivElement, ProductCardProps>(
56 (
57 {
58 className,
59 variant = "default",
60 size = "default",
61 animated = true,
62 onCardClick,
63 children,
64 ...props
65 },
66 ref
67 ) => {
68 return (
69 <ProductCardContext.Provider value={{ variant, size, animated }}>
70 <div
71 ref={ref}
72 className={cn("cursor-pointer overflow-hidden rounded-lg", className)}
73 onClick={onCardClick}
74 {...props}
75 >
76 {children}
77 </div>
78 </ProductCardContext.Provider>
79 )
80 }
81)
82ProductCard.displayName = "ProductCard"
83
84/* ------------------------------------------------------------------
85 * ProductCardImage
86 * ------------------------------------------------------------------ */
87
88// … truncated

Files it writes

  • registry/delta-ui/delta/product-card.tsx

Facts

Registry
delta-components
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-10
Last confirmed
today

Go to the source

Docs on delta-components deltacomponents.dev pprunty/deltacomponents.dev on GitHub Raw registry item This item as JSON

More from delta-components

All 93 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
admonitionadmonitiondelta-componentsComponentsFree1 dep
cambio-imagecambio-imagedelta-componentsComponentsFree2 deps
card-deckcard-deckdelta-componentsComponentsFree3 deps
chatchatdelta-componentsComponentsFree3 deps
code-blockcode-blockdelta-componentsComponentsFree3 deps
code-block-iconscode-block-iconsdelta-componentsComponentsFreeno deps
copy-buttoncopy-buttondelta-componentsComponentsFree1 dep
input-otpinput-otpdelta-componentsComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex