BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/contentbit/comparison

Comparison Block

contentbit/comparison
FreeComponent

Two-option comparison table.

Install it

npx shadcn@latest add https://contentbit.dev/r/comparison.json

Source

src/blocks/comparison.tsxcontentbit.dev/r/comparison.json
1import { comparisonBlock } from '@contentbit/blocks'
2import { defineBlockComponent } from '@contentbit/react'
3
4export const ComparisonBlock = defineBlockComponent(comparisonBlock, ({ node }) => {
5 const data = node.data
6 return (
7 <div data-cb-styled className="bg-card my-6 overflow-x-auto rounded-lg border">
8 <table className="w-full text-sm">
9 <thead>
10 <tr className="bg-muted/50 border-b">
11 <th scope="col" className="w-[28%] px-4 py-3 text-left font-medium" />
12 <th scope="col" className="px-4 py-3 text-left">
13 <span className="font-semibold">{node.props.left}</span>
14 </th>
15 <th scope="col" className="px-4 py-3 text-left">
16 <span className="font-semibold">{node.props.right}</span>
17 </th>
18 </tr>
19 </thead>
20 <tbody className="divide-y">
21 {data.rows.map((row, i) => (
22 <tr key={i} className="hover:bg-muted/30 transition-colors">
23 <th
24 scope="row"
25 className="text-muted-foreground px-4 py-3 text-left text-[13px] font-medium"
26 >
27 {row.label}
28 </th>
29 <td className="px-4 py-3 tabular-nums">{row.left}</td>
30 <td className="px-4 py-3 tabular-nums">{row.right}</td>
31 </tr>
32 ))}
33 </tbody>
34 </table>
35 </div>
36 )
37})

What it pulls in

npm packages

  • @contentbit/core
  • @contentbit/blocks
  • @contentbit/react

Files it writes

  • src/blocks/comparison.tsx

Facts

Registry
contentbit
Type
registry:component
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-04
Last confirmed
today

Go to the source

contentbit.dev agonist/contentbit on GitHub Raw registry item This item as JSON

More from contentbit

All 20 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Callout Block (Astro)astro-calloutcontentbitComponentsFree3 deps
Comparison Block (Astro)astro-comparisoncontentbitComponentsFree3 deps
Content Renderer (Astro)astro-content-renderercontentbitComponentsFree3 deps
FAQ Block (Astro)astro-faqcontentbitComponentsFree3 deps
Key Metrics Block (Astro)astro-key-metricscontentbitComponentsFree3 deps
Pros & Cons Block (Astro)astro-pros-conscontentbitComponentsFree3 deps
Quick Reference Block (Astro)astro-quick-refcontentbitComponentsFree3 deps
Steps Block (Astro)astro-stepscontentbitComponentsFree3 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