BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn-ui-blocks/comparison-01

Comparison 01

shadcn-ui-blocks-shadcnship/comparison-01
FreeBlock

Product comparison table with images, specification rows, and checkmark/cross value indicators. Use it on product or pricing pages to help users make confident purchase decisions by clearly highlighting key differences.

See it running

Open the demo on shadcn-ui-blocks

shadcnship.com/blocks/comparison-01
Open
This registry sends X-Frame-Options, so its page cannot be embedded here. The link is the same page the frame would have shown.

Install it

npx shadcn@latest add https://shadcnship.com/r/comparison-01.json

Source

src/registry/blocks/comparison-01/comparison.tsxshadcnship.com/r/comparison-01.json
1import { cn } from "@/lib/utils";
2import { Check, X } from "lucide-react";
3
4type FeatureValue =
5 | string
6 | boolean
7 | { type: "colors"; values: string[] }
8 | { type: "percentage"; value: number };
9
10interface Product {
11 name: string;
12 img?: string;
13 icon?: React.ReactNode;
14 featured?: boolean;
15}
16interface Feature {
17 name: string;
18 values: FeatureValue[];
19}
20interface Comparison01Props {
21 label?: string;
22 title?: string;
23 description?: string;
24 products?: Product[];
25 features?: Feature[];
26 className?: string;
27}
28
29const FeatureValueCell = ({ value }: { value: FeatureValue }) => {
30 if (typeof value === "boolean")
31 return value ? (
32 <Check className="size-5 text-foreground" />
33 ) : (
34 <X className="size-5 text-muted-foreground/40" />
35 );
36 if (typeof value === "object" && value.type === "colors")
37 return (
38 <div className="flex items-center gap-1.5">
39 {value.values.map((color, i) => (
40 <div
41 key={i}
42 className="size-5 rounded-full border border-border"
43 style={{ backgroundColor: color }}
44 />
45 ))}
46 </div>
47 );
48 if (typeof value === "object" && value.type === "percentage")
49 return <span className="text-sm">{value.value}%</span>;
50 return <span className="text-sm">{value}</span>;
51};
52
53const Comparison01 = ({
54 label = "Why choose us",
55 title = "Not all creams are created equal",
56 description = "See how our formula compares to the competition.",
57 products = [
58 {
59 name: "Basic Cream",
60 img: "https://www.shadcnship.com/images/placeholders/product-design-1.webp",
61 },
62 {
63 name: "Lumière Pro",
64 featured: true,
65 img: "https://www.shadcnship.com/images/placeholders/product-design-2.webp",
66 },
67 {
68 name: "Other Brands",
69 img: "https://www.shadcnship.com/images/placeholders/product-design-3.webp",
70 },
71 ],
72 features = [
73 { name: "Hydration duration", values: ["4 hours", "72 hours", "8 hours"] },
74 { name: "Dermatologist tested", values: [false, true, false] },
75 { name: "Fragrance-free", values: [false, true, false] },
76 { name: "For sensitive skin", values: [false, true, "Partial"] },
77 { name: "SPF protection", values: [false, true, false] },
78 { name: "Natural ingredients", values: ["Partial", true, false] },
79 { name: "Vegan & cruelty-free", values: [false, true, false] },
80 { name: "Price", values: ["$12", "$48", "$65"] },
81 ],
82 className,
83}: Comparison01Props) => {
84// … truncated

What it pulls in

npm packages

  • lucide-react

Files it writes

  • src/registry/blocks/comparison-01/comparison.tsx

Facts

Registry
shadcn-ui-blocks
Type
registry:block
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

Docs on shadcn-ui-blocks shadcnship.com arnaudvolp/shadcnship on GitHub Raw registry item This item as JSON

More from shadcn-ui-blocks

All 74 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Square Grid Backgroundbackground-01shadcn-ui-blocksBlocksFreeno deps
Dot Pattern Backgroundbackground-02shadcn-ui-blocksBlocksFreeno deps
Diagonal Stripes Backgroundbackground-03shadcn-ui-blocksBlocksFreeno deps
Vertical Lines Backgroundbackground-04shadcn-ui-blocksBlocksFreeno deps
Interactive Grid Backgroundbackground-05shadcn-ui-blocksBlocksFreeno deps
Banner 01banner-01shadcn-ui-blocksBlocksFree1 dep
Blog 01blog-01shadcn-ui-blocksBlocksFreeno deps
Changelog 01changelog-01shadcn-ui-blocksBlocksFreeno deps

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