Quick Reference Block (Astro)
contentbit/astro-quick-refFreeComponent
Compact key/value reference card.
Install it
npx shadcn@latest add https://contentbit.dev/r/astro-quick-ref.jsonSource
1---2import type { QuickRefData } from '@contentbit/blocks'3import type { ValidatedBlockNode } from '@contentbit/core'45interface Props {6 node: ValidatedBlockNode<unknown>7}89const { node } = Astro.props10const data = node.data as QuickRefData11---1213<dl data-cb-styled class="bg-card my-6 space-y-2.5 rounded-lg border px-4 py-3.5">14 {15 data.rows.map((row) => (16 <div class="flex items-baseline gap-3">17 <dt class="text-muted-foreground shrink-0 text-sm">{row.key}</dt>18 <span class="border-foreground/15 min-w-4 flex-1 self-center border-b border-dotted" aria-hidden="true" />19 <dd class="text-right text-sm font-medium tabular-nums">{row.value}</dd>20 </div>21 ))22 }23</dl>
What it pulls in
npm packages
Files it writes
More from contentbit
All 20 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Callout Block (Astro)astro-callout | contentbit | Components | Free | 3 deps | |
| Comparison Block (Astro)astro-comparison | contentbit | Components | Free | 3 deps | |
| Content Renderer (Astro)astro-content-renderer | contentbit | Components | Free | 3 deps | |
| FAQ Block (Astro)astro-faq | contentbit | Components | Free | 3 deps | |
| Key Metrics Block (Astro)astro-key-metrics | contentbit | Components | Free | 3 deps | |
| Pros & Cons Block (Astro)astro-pros-cons | contentbit | Components | Free | 3 deps | |
| Steps Block (Astro)astro-steps | contentbit | Components | Free | 3 deps | |
| Tabs Block (Astro)astro-tabs | contentbit | Components | Free | 3 deps |
