# Step Header

Heads one step of a setup flow: a numbered 20 px circle, a 14 px title and an optional muted hint on the same line.

- Beta: ready to use; its API can still change in a minor release.
- Category: Layout & surfaces

```tsx
import { StepHeader } from "@leap-crm/design-system";
```

## Best practices

- Do: Use it for the steps of a setup flow a firm works through in order, like getting enquiries into the CRM, then inviting the team.
- Do: Keep the title to what the step achieves, and put how to do it in `hint`, so the numbered titles read as a checklist.
- Do: Set `level` to fit the page's outline. The number and title are read as one heading, like "Step 1: Invite your team".
- Don't: Number sections that can be done in any order. Use `SectionHeader`, so the numbers never suggest a sequence that isn't there.

## Related

- [Panel Header](./panel-header.md)
- [Section Header](./section-header.md)
- [Pipeline](./pipeline.md)

## Examples

What the examples import:

```tsx
import { StepHeader } from "@leap-crm/design-system";
```

### Steps

```tsx
<div className="flex flex-col gap-4">
  <StepHeader
    step={1}
    title="Get your enquiries into LEAP CRM"
    hint="Open the guide for how you prefer to receive enquiries"
  />
  <StepHeader step={2} title="Invite your team" />
</div>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `step` (required) | `number` |  | The step's number, in a 20 px circle. |
| `title` (required) | `ReactNode` |  | What the step is about. Read with its number as one heading. |
| `hint` | `ReactNode` |  | A muted hint after the title, on the same line. |
| `level` | `2 \| 3 \| 4` | `3` | The heading level the title takes in the page's outline. |
| `className` | `string` |  | Classes added to the root element, merged with its own. Tokens only. |
