# Steps, with image

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

A picture on one side that stays in view while three to six numbered steps run down the other. Use when one screenshot explains the whole flow.

## Import

- **CLI**

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

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

Also called

- steps/media

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

## Notes

- **When to use it**: Pairs one tall picture with three to six numbered steps, for flows that a single screenshot or photo can explain. Choose `steps-horizontal` when there is no image, and `steps-numbered` when steps carry code.
- **Writing for it**: - The media is drawn at a 4 to 5 portrait ratio with rounded corners, so pick a screenshot cropped to that shape instead of a wide banner that will be cut.
- Step titles hold 80 characters and descriptions 240. Number them in your head first, because the circle numbers are added for you and should not be typed into the title.
- Write the alt text of the media (200 characters) as what the picture shows at the end of the flow, since it is the only description of the image for screen readers.
- **Watch out for**: On wide containers the picture is sticky and stays in view while the steps scroll past it. A list of six long steps beside a short picture works well, but three tiny steps leave the picture with nothing to be sticky against.

## Pairs well with

- **[Hero, centered](/blocks/hero/centered)**
- **[Features, alternating](/blocks/features/alternating)**
- **[FAQ, list](/blocks/faq/accordion)**

## 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 StepsMedia from '@/components/klarhimmel/blocks/steps-media';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <StepsMedia props={{
          "eyebrow": "Name the section",
          "title": "Say how quick it is",
          "description": "Say in one line how to follow the steps and how long each takes.",
          "media": {
            "src": "/pictures/photo-patio2.avif",
            "alt": "A curved paved path beside a stone wall"
          },
          "steps": [
            {
              "title": "Name the first step",
              "description": "Say what the reader does first, and what to have at hand."
            },
            {
              "title": "Name the second step",
              "description": "Say what the reader decides in the second step, and what the choices are."
            },
            {
              "title": "Name the third step",
              "description": "Say what the reader connects or sets up in the third step."
            },
            {
              "title": "Name the fourth step",
              "description": "Say what the reader does last, and where it ends up."
            }
          ],
          "cta": {
            "label": "Main action",
            "href": "/signup"
          }
        }} />
      </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.
- **media**: See the type.
- **steps**: List of 3 to 6. Each item: title, description.
- **cta**: See the type.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/steps/horizontal)

[Next](/blocks/steps/numbered)
