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-steps

Steps Block (Astro)

contentbit/astro-steps
FreeComponent

Numbered process steps.

Install it

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

Source

src/astro/steps.astrocontentbit.dev/r/astro-steps.json
1---
2import type { StepsData } from '@contentbit/blocks'
3import type { ValidatedBlockNode } from '@contentbit/core'
4import type { AstroBlockContext } from '@contentbit/astro'
5
6interface Props {
7 node: ValidatedBlockNode<unknown>
8 ctx: AstroBlockContext
9}
10
11const { node, ctx } = Astro.props
12const data = node.data as StepsData
13const last = data.items.length - 1
14const items = await Promise.all(
15 data.items.map(async (item) => ({
16 html: await ctx.renderMarkdown(item.text),
17 })),
18)
19---
20
21<ol data-cb-styled class="my-6 list-none p-0">
22 {
23 items.map((item, i) => (
24 <li class="relative flex gap-4 pb-7 last:pb-0">
25 {i < last ? <span class="bg-border absolute top-7 bottom-1 left-[13px] w-px" aria-hidden="true" /> : null}
26 <span class="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">
27 {i + 1}
28 </span>
29 <div class="min-w-0 pt-1 text-sm leading-relaxed [&>p]:m-0 [&>p+p]:mt-2" set:html={item.html} />
30 </li>
31 ))
32 }
33</ol>

What it pulls in

npm packages

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

Files it writes

  • src/astro/steps.astro

Facts

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

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
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