BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/contentbit/steps

Steps Block

contentbit/steps
FreeComponent

Numbered process steps.

Install it

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

Source

src/blocks/steps.tsxcontentbit.dev/r/steps.json
1import { stepsBlock } from '@contentbit/blocks'
2import { defineBlockComponent } from '@contentbit/react'
3
4export const StepsBlock = defineBlockComponent(stepsBlock, ({ node, ctx }) => {
5 const data = node.data
6 const last = data.items.length - 1
7 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

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

Files it writes

  • src/blocks/steps.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