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.

BetaReady to use. Its API can still change in a minor release; the changelog says when.

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

Playground

Change a prop and the component follows. Its code is under Props.

Step 1: Choose a matter type

Props

step
title
hint
level

Best practices

When to use it, and the rules that apply in particular places.

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

Props

PropTypeDefaultDescription
step *number—The step's number, in a 20 px circle.
title *ReactNode—What the step is about. Read with its number as one heading.
hintReactNode—A muted hint after the title, on the same line.
level2 | 3 | 43The heading level the title takes in the page's outline.
classNamestring—Classes added to the root element, merged with its own. Tokens only.

Code

What the playground shows, ready to copy.

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

<StepHeader step={1} title="Choose a matter type" />