Skip to content
InsightCharts

Search

Search guides and components

Step marker

A numbered chapter or step heading ("01 — Electricity sources in 2015") for sequencing the sections of a story.

Use when
When a piece has three to seven ordered chapters or steps. Open each one with a marker so the reader can see the position in the sequence.
Avoid when
Unordered sections (use headline with size: "section"), or numbering a list of items inside a paragraph.

Preview

Step 01: Electricity sources in 2015

Europe's electricity generation by source in 2015.

Composition

Used in

2 molecules and 3 templates use step marker.

Molecules

2

A vertical sequence of dated events along a rail, each with a short explanation and, optionally, a small chart or figure.

A story section: a numbered step marker or a headline, introductory prose, then one or more exhibits in a responsive one- to three-column grid.

Templates

3

A vertical infographic in one narrow column. It opens with a big number or a proportion statement (hook), then the hero exhibit, then numbered sections with one exhibit each, a conclusion with an optional link, and sources.

A long article read by scrolling. It has a headline, then an ordered list of blocks in a reading column, then a source note. The blocks are prose, figures, charts with a callout, scrolly sequences, pull quotes, stat rows, small multiples and chapter breaks. Exhibits can be wider than the column.

A story told in date order. It has a headline, one overview exhibit of the whole period (a timeline chart or an annotated line), dated chapters along a rail, a closing paragraph and a source note. Each chapter has a short text and an optional small exhibit.

Installation

$ pnpm dlx shadcn@latest add @insightcharts/step-marker

The CLI copies the source into your project and needs the @insightcharts registry in components.json; see installation. With the package, import it by name:

import { StepMarker } from "insightcharts";

Examples

With total and rule

Step 02 of 05: Solar module costs fell 82% in eight years

Average module cost per watt in each year.

Stacked

Step 03: Hours in which midday solar generation exceeded demand on the grid, by month and country

Letter step, title only

Step B: Factors excluded from the forecast

Props

PropTypeDefaultDescription
steprequirednumber | stringStep number, zero-padded to two digits. Strings are shown as written.
titlerequiredstringThe chapter or step title.
totalnumberTotal steps; the marker then reads "02 / 05".
textstringA sentence under the title.
childrenReactNodeJSX alternative to text.
level1 | 2 | 3 | 4 | 5 | 62Heading level.
size"md" | "lg""md"lg for chapter openers.
layout"inline" | "stacked""inline"Number beside or above the title. Narrow containers always stack.
rulebooleanfalseHairline above the marker.