Marketing sectionsStepsColumns
Searchastronomic.dev# StepsColumns
To explain a process in order, like how a project runs from start to launch, in columns side by side.
Static: no JavaScript.
## Usage
```astro
import StepsColumns from "@astronomic-dev/ui/components/StepsColumns.astro";
```
## Examples
### Project process
Each step starts with a marker, its number in a small ring, then the text. Below a 32rem container (every phone) a short list, each marker beside its text; from 32rem columns, the marker above the text with a hairline to the next step, so the row reads as a path: four steps make two rows of two, then one row of four from 56rem.
```astro
---
import StepsColumns from "@astronomic-dev/ui/components/StepsColumns.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. You pick one, and we refine it with you." },
{ 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">
<StepsColumns heading="How a project runs" items={steps} />
</div>
```
### Five and six steps
The columns follow the count, so no step is left alone in a row: five make a row of three and a row of two, then one row of five from a 64rem container; six make two rows of three.
```astro
---
import StepsColumns from "@astronomic-dev/ui/components/StepsColumns.astro";
import { displayType } from "@astronomic-dev/ui/lib/display.ts";
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. You pick one, and we refine it with you." },
{ title: "Content", meta: "Weeks 3–4", text: "We plan every page and move your copy and images across." },
{ 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." },
{ title: "Care", meta: "After launch", text: "A month of fixes and small changes, then support when you need it." },
];
---
<div class="mx-auto grid max-w-6xl gap-section px-6 py-16">
<div data-five class="grid gap-blocks">
<h2 class={`m-0 text-title text-balance ${displayType}`}>Five steps</h2>
<StepsColumns items={steps.slice(0, 5)} />
</div>
<div data-six class="grid gap-blocks">
<h2 class={`m-0 text-title text-balance ${displayType}`}>Six steps</h2>
<StepsColumns items={steps} />
</div>
</div>
```
### A timing line above each title
Tilth & Stone Landscapes' process: metaPlacement="above" puts each step's timing between the marker and the title, and metaClass sets it in a small uppercase line in the accent.
```astro
---
import StepsColumns from "@astronomic-dev/ui/components/StepsColumns.astro";
const steps = [
{ title: "Walk the yard", meta: "Within 1 week", text: "We look at sun, slope, soil and how you use the space. You get a rough range before we leave." },
{ title: "Plan and price", meta: "1–2 weeks", text: "A drawn plan with a plant list and a fixed price. One round of changes is included." },
{ title: "Build", meta: "3–10 days on site", text: "Utilities located, then the crew builds in order: grading, stone, watering, plants, mulch." },
{ title: "First-season check", meta: "6 weeks after", text: "We come back to adjust watering and replace anything that did not take." },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<StepsColumns heading="How a yard project runs" items={steps} metaPlacement="above" metaClass="font-semibold uppercase tracking-wider text-accent" />
</div>
```
### Square markers
markerShape="square" gives each marker the control's corners in place of the circle, and markerClass fills it in the accent at 40px, as a trades site's numbered tiles.
```astro
---
import StepsColumns from "@astronomic-dev/ui/components/StepsColumns.astro";
const steps = [
{ title: "Call or book online", meta: "Same day", text: "Tell us what is wrong. A person answers, not a phone tree." },
{ title: "We come to you", meta: "In a 2-hour window", text: "The plumber texts when they are on the way, with a photo and a name." },
{ title: "A price before work", meta: "On site", text: "You see the fixed price first. Nothing starts until you say yes." },
{ title: "Fixed and cleaned up", meta: "1-year warranty", text: "We test it with you, clean up, and leave the warranty in writing." },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<StepsColumns
heading="How a repair runs"
items={steps}
markerShape="square"
markerClass="size-10 border-transparent bg-accent text-on-accent"
metaPlacement="above"
metaClass="font-semibold uppercase tracking-wider text-accent"
/>
</div>
```
### In a narrow column
Four steps in a 24rem column: a list, each marker beside its text, and the long title word breaks inside its step.
```astro
---
import StepsColumns from "@astronomic-dev/ui/components/StepsColumns.astro";
import { displayType } from "@astronomic-dev/ui/lib/display.ts";
const steps = [
{ title: "Workshop", meta: "Week 1", text: "One day with your team. We agree on goals, audience and budget." },
{ title: "Accessibilityreviewcontentmigrationandeditortraining", meta: "Weeks 2–3", text: "One long word in the title: it breaks inside its step." },
{ 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">
<div data-narrow class="grid max-w-sm gap-blocks">
<h2 class={`m-0 text-title text-balance ${displayType}`}>In a narrow column</h2>
<StepsColumns items={steps} />
</div>
</div>
```
## Props
### StepsColumns
| 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. |
| `markerShape` | `"circle" \| "square"` | `"circle"` | The marker's outline: fully round, or the control's corners (rounded-control), so it follows the theme's controls. |
| `markerClass` | `string` | None | More classes for each marker, after its own, such as size-10 border-transparent bg-accent text-on-accent for a filled tile. |
| 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.
StepsColumns
FreeTo explain a process in order, like how a project runs from start to launch, in columns side by side.
- File
- StepsColumns.astro
- Group
- Marketing sections
- Kind
- Static: no JavaScript
- Examples
- 5
Examples
Drag the orange handle to set the width. Frames get real breakpoints.
- Static
- Interactive
- Framed
Project process
Each step starts with a marker, its number in a small ring, then the text. Below a 32rem container (every phone) a short list, each marker beside its text; from 32rem columns, the marker above the text with a hairline to the next step, so the row reads as a path: four steps make two rows of two, then one row of four from 56rem.
This preview did not load.
examples/stepscolumns/main.astro
---
import StepsColumns from "@astronomic-dev/ui/components/StepsColumns.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. You pick one, and we refine it with you." },
{ 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">
<StepsColumns heading="How a project runs" items={steps} />
</div>Five and six steps
The columns follow the count, so no step is left alone in a row: five make a row of three and a row of two, then one row of five from a 64rem container; six make two rows of three.
This preview did not load.
examples/stepscolumns/counts.astro
---
import StepsColumns from "@astronomic-dev/ui/components/StepsColumns.astro";
import { displayType } from "@astronomic-dev/ui/lib/display.ts";
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. You pick one, and we refine it with you." },
{ title: "Content", meta: "Weeks 3–4", text: "We plan every page and move your copy and images across." },
{ 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." },
{ title: "Care", meta: "After launch", text: "A month of fixes and small changes, then support when you need it." },
];
---
<div class="mx-auto grid max-w-6xl gap-section px-6 py-16">
<div data-five class="grid gap-blocks">
<h2 class={`m-0 text-title text-balance ${displayType}`}>Five steps</h2>
<StepsColumns items={steps.slice(0, 5)} />
</div>
<div data-six class="grid gap-blocks">
<h2 class={`m-0 text-title text-balance ${displayType}`}>Six steps</h2>
<StepsColumns items={steps} />
</div>
</div>A timing line above each title
Tilth & Stone Landscapes' process: metaPlacement="above" puts each step's timing between the marker and the title, and metaClass sets it in a small uppercase line in the accent.
This preview did not load.
examples/stepscolumns/timings.astro
---
import StepsColumns from "@astronomic-dev/ui/components/StepsColumns.astro";
const steps = [
{ title: "Walk the yard", meta: "Within 1 week", text: "We look at sun, slope, soil and how you use the space. You get a rough range before we leave." },
{ title: "Plan and price", meta: "1–2 weeks", text: "A drawn plan with a plant list and a fixed price. One round of changes is included." },
{ title: "Build", meta: "3–10 days on site", text: "Utilities located, then the crew builds in order: grading, stone, watering, plants, mulch." },
{ title: "First-season check", meta: "6 weeks after", text: "We come back to adjust watering and replace anything that did not take." },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<StepsColumns heading="How a yard project runs" items={steps} metaPlacement="above" metaClass="font-semibold uppercase tracking-wider text-accent" />
</div>Square markers
markerShape="square" gives each marker the control's corners in place of the circle, and markerClass fills it in the accent at 40px, as a trades site's numbered tiles.
This preview did not load.
examples/stepscolumns/squares.astro
---
import StepsColumns from "@astronomic-dev/ui/components/StepsColumns.astro";
const steps = [
{ title: "Call or book online", meta: "Same day", text: "Tell us what is wrong. A person answers, not a phone tree." },
{ title: "We come to you", meta: "In a 2-hour window", text: "The plumber texts when they are on the way, with a photo and a name." },
{ title: "A price before work", meta: "On site", text: "You see the fixed price first. Nothing starts until you say yes." },
{ title: "Fixed and cleaned up", meta: "1-year warranty", text: "We test it with you, clean up, and leave the warranty in writing." },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<StepsColumns
heading="How a repair runs"
items={steps}
markerShape="square"
markerClass="size-10 border-transparent bg-accent text-on-accent"
metaPlacement="above"
metaClass="font-semibold uppercase tracking-wider text-accent"
/>
</div>In a narrow column
Four steps in a 24rem column: a list, each marker beside its text, and the long title word breaks inside its step.
This preview did not load.
examples/stepscolumns/narrow.astro
---
import StepsColumns from "@astronomic-dev/ui/components/StepsColumns.astro";
import { displayType } from "@astronomic-dev/ui/lib/display.ts";
const steps = [
{ title: "Workshop", meta: "Week 1", text: "One day with your team. We agree on goals, audience and budget." },
{ title: "Accessibilityreviewcontentmigrationandeditortraining", meta: "Weeks 2–3", text: "One long word in the title: it breaks inside its step." },
{ 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">
<div data-narrow class="grid max-w-sm gap-blocks">
<h2 class={`m-0 text-title text-balance ${displayType}`}>In a narrow column</h2>
<StepsColumns items={steps} />
</div>
</div>