Steps Block
contentbit/stepsFreeComponent
Numbered process steps.
Install it
npx shadcn@latest add https://contentbit.dev/r/steps.jsonSource
1import { stepsBlock } from '@contentbit/blocks'2import { defineBlockComponent } from '@contentbit/react'34export const StepsBlock = defineBlockComponent(stepsBlock, ({ node, ctx }) => {5 const data = node.data6 const last = data.items.length - 17 return (8 <ol data-cb-styled className="my-6">9 {data.items.map((item, i) => (10 <li key={i} className="relative flex gap-4 pb-7 last:pb-0">11 {i < last ? (12 <span className="bg-border absolute top-7 bottom-1 left-[13px] w-px" aria-hidden />13 ) : null}14 <span className="bg-card text-foreground z-10 flex size-7 shrink-0 items-center justify-center rounded-full border font-mono text-xs font-semibold shadow-sm">15 {i + 1}16 </span>17 {/* Step text is Markdown — inline code and emphasis are common. */}18 <div className="min-w-0 pt-1 text-sm leading-relaxed [&>p]:m-0 [&>p+p]:mt-2">19 {ctx.renderMarkdown(item.text)}20 </div>21 </li>22 ))}23 </ol>24 )25})
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 | |
| Quick Reference Block (Astro)astro-quick-ref | contentbit | Components | Free | 3 deps | |
| Steps Block (Astro)astro-steps | contentbit | Components | Free | 3 deps |
