Marketing sectionsStepsList
Searchastronomic.dev# StepsList
To explain a longer process in order, one step under another, along a line.
Static: no JavaScript.
## Usage
```astro
import StepsList from "@astronomic-dev/ui/components/StepsList.astro";
```
## Examples
### One step under another
A line down the list's start edge, each step a row beside it: the number, then the title, phase and text. A long text keeps to the running-text width (65ch), even on a wide page.
```astro
---
import StepsList from "@astronomic-dev/ui/components/StepsList.astro";
const steps = [
{ title: "Workshop", meta: "Week 1", text: "One day with your team. We agree on goals, audience and budget." },
{
title: "Direction",
meta: "Weeks 2–3",
text: "Two design routes, each shown on your own content: the home page, a service page and a case study. You pick one, and we refine it with you over two rounds, until the type, the colors and the layout feel like yours. Long text keeps to the running-text width, so its lines stay easy to read on a wide page.",
},
{ title: "Build", meta: "Weeks 4–9", text: "Design and code in weekly rounds. You see real pages every Friday." },
{ title: "Launch", meta: "Week 10", text: "We launch, train your editors, and hand over every source file." },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<StepsList heading="How a project runs" text="Ten weeks, one step after another." items={steps} />
</div>
```
## Props
### StepsList
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `heading` | `string` | None | The section heading, in the title role in display type. Without it there is no section and no header: a plain <div> holds only the list. |
| `emphasis` | `boolean` | `false` | Turn one *phrase* in the heading into <em>: exactly two asterisks around text with no space inside, as in "Built for *the long run*". Any other asterisks show as typed. Off by default, so the heading shows as typed. How the <em> looks is the theme's. |
| `mark` | `string` | None | A short mark after the heading, such as "(12)" or "©2026", in small muted type. It sits beside the heading, outside it, so the heading's name stays plain. Shown only with a heading. |
| `markLabel` | `string` | None | What the mark says to a screen reader, such as "12 projects": the mark is then hidden from screen readers and this is read in its place. Without it, the mark is read as written. |
| `text` | `string` | None | One or two sentences under the heading, in the lead role, muted. Shown only with a heading. |
| `headingTag` | `"h2" \| "h3" \| "h4"` | `"h2"` | The heading element. Step titles sit one level under it. |
| `class` | `string` | None | More classes for the root (the <section>, or the <div> without a heading), merged with cn(), so yours win on conflicts. The root is a named size container (inline-size containment): in a shrink-to-fit parent (inline-flex, a float, fit-content) it collapses, so give it a width there. |
| `itemHeadingTag` | `"h2" \| "h3" \| "h4" \| "h5"` | `"h3"` | The step title element when there is no heading. With a heading, titles sit one level under it. |
| `metaPlacement` | `"below" \| "above"` | `"below"` | Where each step's meta sits: under the title, or above it (between the number and the title, in the DOM too), as a timing line read first. |
| `metaClass` | `string` | None | Each step's meta type and color, after its own classes, such as font-semibold uppercase tracking-wider text-accent. |
| `items` | `StepsItem[]` | None | Required. The steps, in order: { title, meta?, text? } (StepsItem). meta is a short phase, such as "Weeks 2–3". Only these fields reach each step, so a CMS entry's other fields never reach the page. An empty list renders an empty list: leave the section out when there are none. The number column is as wide as its number: from step 10 on, the wider number pushes that step's text in a little. |
| Slot | Description |
| --- | --- |
| `eyebrow` | A short line above the heading, such as a Badge. Shown only with a heading. |
Any other attribute goes on the <section>, or on the <div> without a heading.
## Accessibility
- With a heading, renders a <section> named by it, so it is a region landmark. The heading id is unique on the page.
- Without a heading, renders a plain <div>. Put your own heading above it.
- The steps are an ordered list, so a screen reader says the order: it hears "list, N items", then the steps in order. The numbers are hidden from it.
- Each step title sits one level under the section heading (h2 gives h3). With no heading, it is an h3 unless you set itemHeadingTag.
- With no steps the list is still there, empty: leave the section out when there are none.
StepsList
FreeTo explain a longer process in order, one step under another, along a line.
- File
- StepsList.astro
- Group
- Marketing sections
- Kind
- Static: no JavaScript
- Examples
- 1
Examples
Drag the orange handle to set the width. Frames get real breakpoints.
- Static
- Interactive
- Framed
One step under another
A line down the list's start edge, each step a row beside it: the number, then the title, phase and text. A long text keeps to the running-text width (65ch), even on a wide page.
This preview did not load.
main.astro
examples/stepslist/main.astro
---
import StepsList from "@astronomic-dev/ui/components/StepsList.astro";
const steps = [
{ title: "Workshop", meta: "Week 1", text: "One day with your team. We agree on goals, audience and budget." },
{
title: "Direction",
meta: "Weeks 2–3",
text: "Two design routes, each shown on your own content: the home page, a service page and a case study. You pick one, and we refine it with you over two rounds, until the type, the colors and the layout feel like yours. Long text keeps to the running-text width, so its lines stay easy to read on a wide page.",
},
{ title: "Build", meta: "Weeks 4–9", text: "Design and code in weekly rounds. You see real pages every Friday." },
{ title: "Launch", meta: "Week 10", text: "We launch, train your editors, and hand over every source file." },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<StepsList heading="How a project runs" text="Ten weeks, one step after another." items={steps} />
</div>Minimal · Light