Block 15 of 297
Steps
A numbered how-it-works process, horizontal or vertical, with an optional call to action.
- Puck key
- StepsBlock
- Export
- stepsBlock
- React component
- <Steps />
- Path
- components/puck/steps-block.tsx
- Dependencies
- None
- License
- MIT
About this block
When to use it, how to write for it, and what to change in the code.
What it's for
A numbered how-to for a process with a clear order, such as applying, registering or volunteering. Choose Row to place short steps side by side with thin connector lines on desktop, or List for a vertical sequence beside the heading that handles longer descriptions. Both layouts stack on phones, and an optional button closes the section.
- How to apply for a program, permit or scholarship
- Volunteer onboarding from sign-up to first shift
- What happens after someone submits a request
Writing the content
- Use Row for three or four steps with short descriptions; past four, steps wrap and the connector lines are dropped.
- Switch Layout to List when descriptions run past two sentences or you have five to eight steps.
- Start each step Title with a verb and keep it to one line.
- Point the Button text at the first step, like "Start your application", and leave it blank if the page continues the process below.
Accessibility
- Steps are an ordered list, so screen readers announce position and count; the visible number circles are aria-hidden to avoid reading numbers twice (WCAG 1.3.1).
- Step titles are headings one level below the section heading.
- Connector lines are decorative and hidden from assistive tech; the button shows a focus outline at 44px minimum height.
Customizing the code
- Number circles use bg-indigo-600 with ring-8 ring-white in the number helper; change the color there.
- Row column counts are in rowCols, with sm:grid-cols-2 lg:grid-cols-4 as the fallback for four or more steps.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Headingtext
- Heading levelselect
- Introtextarea
- Stepsarray
- Layoutradio
- Button texttext
- Button linktext