Skip to content
Haze UI

Process: numbered steps

An introduction beside an ordered sequence of numbered steps, with room for a short detail on each one.

pnpm dlx shadcn@latest add @haze/process-numbered-steps
Open preview in a new tab
Liveno JavaScript

When to use

  • Explaining a short sequence before someone starts
  • The steps need a sentence of context rather than a progress control

When not to use

  • Visitors need to navigate an active multi-step form rather than read an overview

Installation

Add the Haze registry to components.json once, then install Process: numbered steps with the shadcn CLI. Works in any Astro project with Tailwind CSS v4.

pnpm dlx shadcn@latest add @haze/process-numbered-steps
First time? Registry and theme setup

1. Add to components.json:

{
  "registries": {
    "@haze": "http://localhost:4329/r/{name}.json"
  }
}

2. Install the theme once: npx shadcn@latest add @haze/theme, then import it after Tailwind in your global CSS:@import "./haze.css";

API reference

PropTypeDefaultDescription
idstring"process-numbered-steps"Section ID prefix; change it for each instance on a page.
eyebrowstring"How it works"Label above the heading.
titlestringdemo headingSection heading.
descriptionstringdemo copyIntroductory paragraph.
headingLevel1 | 2 | 32Heading level; step headings use the next level.
steps{ title: string; description: string; detail?: string }[]3 demo stepsSteps in reading order, with an optional supporting detail.
classstring–Additional classes on the section.

Accessibility

  • Steps are an ordered list, so their sequence is available without the decorative numbers.
  • Give repeated instances different id values to keep their section labels distinct.

Notes for AI

Copy into Claude Code, Cursor, Codex or any coding agent. Agents can also read the Markdown version of this page.

  • Install and use

    Install the Haze UI block "Process: numbered steps" with `npx shadcn@latest add @haze/process-numbered-steps`. If components.json has no "@haze" registry yet, add "registries": { "@haze": "http://localhost:4329/r/{name}.json" }. If src/styles/haze.css does not exist yet, run `npx shadcn@latest add @haze/theme` once and import it from the global stylesheet after Tailwind. The CLI stops at an overwrite question when a Haze file already exists and differs, even with --yes, and then installs nothing after it: read its output. If the user has not edited their Haze files, re-run with --overwrite to take the registry versions; if they have, ask them before overwriting. Then import ProcessNumberedSteps from "@/components/haze/blocks/process-numbered-steps.astro" (or the relative path) and render it where it fits the page. Keep Haze token classes (bg-background, text-muted-foreground, border-border...) and never hardcode colors. Docs: http://localhost:4329/blocks/process-numbered-steps.md

  • Customize with real content

    Adapt the Haze process-numbered-steps block for our product. Replace the demo values of these props with our real content: id, eyebrow, title, description, headingLevel, steps, class. Keep the layout, the heading level rules and these accessibility details: Steps are an ordered list, so their sequence is available without the decorative numbers. Give repeated instances different id values to keep their section labels distinct. Do not add raw color classes; use the Haze tokens.

  • Choose the right block

    Before using process-numbered-steps, check it fits: use it when explaining a short sequence before someone starts; the steps need a sentence of context rather than a progress control. Avoid it when visitors need to navigate an active multi-step form rather than read an overview. Alternatives: @haze/features-icon-grid.

Dependencies

  • @haze/utils
  • @haze/theme (one-time setup)

Source · Original Haze UI work.

Catalog

↑↓ moveEnter openEsc close

Keyboard shortcuts

CtrlK
Command palette
/
Focus search
←↑→↓
Move between cards
jk
Next / previous card
ci
Copy code / install command (detail page)
[]
Previous / next entry
?
This help
Esc
Close dialog