BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/contentbit/astro-comparison

Comparison Block (Astro)

contentbit/astro-comparison
FreeComponent

Two-option comparison table.

Install it

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

Source

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

What it pulls in

npm packages

  • @contentbit/core
  • @contentbit/blocks
  • @contentbit/astro

Files it writes

  • src/astro/comparison.astro

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
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
Tabs Block (Astro)astro-tabscontentbitComponentsFree3 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