# Steps, numbered

- **[Sections](/blocks/)**
- **[Steps](/blocks/steps/)**
- **Steps, numbered**

Numbered steps as cards in a row or as a list. A step may carry a copyable code block or a reference chip.

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/steps-numbered
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/steps-numbered';
  ```

Also called

- steps/numbered

- **Category**: How it works, in numbered steps or a timeline. New project? Set it up once: /get-started/installation.

## Notes

- **When to use it**: A numbered list of one to ten steps, either as cards in a grid or as a vertical list, where a step can also carry a small reference chip or a copyable code block. It is the pick for setup and install guides; use `steps-timeline` for a story over time.
- **Writing for it**: - The code field takes up to 400 characters and is drawn as a copyable snippet inside the step. Put a single command or short config there, not a file.
- The meta field (60 characters) becomes a small chip beside the title, good for a duration like '5 min' or a tool name.
- Choose layout 'cards' for steps that stand alone and 'list' for steps that must be followed in order, because the list draws a connecting line between the numbers.
- **Watch out for**: When eyebrow, title and description are all empty the section heading is dropped and the step titles are drawn as h2 instead of h3. That keeps the outline correct, but it also means the block then has no heading of its own to label the section.

## Pairs well with

- **[Docs, install panel](/blocks/docs/install)**
- **[Hero, install command](/blocks/hero/install)**
- **[FAQ, with a support card](/blocks/faq/support)**

## Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx

```
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import StepsNumbered from '@/components/klarhimmel/blocks/steps-numbered';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <StepsNumbered props={{
          "eyebrow": "Name the section",
          "title": "Say what the reader has after how many steps",
          "description": "",
          "layout": "list",
          "items": [
            {
              "title": "Name the first step",
              "description": "Say when the reader can skip the first step.",
              "meta": "",
              "code": "npx your-app init"
            },
            {
              "title": "Name the second step",
              "description": "Say what the second step adds and who owns it.",
              "meta": "Name",
              "code": "npx your-app add first-part"
            },
            {
              "title": "Name the third step",
              "description": "Say how to use it and what the reader can change.",
              "meta": "",
              "code": "import { FirstPart } from '@/components/first-part';"
            }
          ]
        }} />
      </BlockSurface>
    </Theme>
  );
}
```

## Props

The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.

- **eyebrow**: Text, up to 60 characters.
- **title**: Text, up to 120 characters.
- **description**: Text, up to 300 characters.
- **layout**: One of 'cards', 'list'.
- **items**: List of 1 to 10. Each item: title, description, meta, code.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/steps/media)

[Next](/blocks/steps/timeline)
