Dev Helpers

React / Steps and progress

Ordered milestone summary

Dev Helpers · October 20, 2026

An ordered milestone summary should preserve the sequence's meaning when names wrap. Use distinct labels for completed, current and upcoming work.

Worked example

// components/OrderedMilestoneSummary.tsx

export default function OrderedMilestoneSummary({
  steps = ["Prepare", "Build", "Review"],
}: { steps?: string[] } = {}) {
  return (
    <ol>
      {steps.map((s, i) => (
        <li key={i}>
          <strong>Milestone {i + 1}</strong>: {s}
        </li>
      ))}
    </ol>
  );
}

Implementation notes

A list's visual order and its DOM order should agree. Reversing display order in CSS alone can produce a confusing keyboard sequence.

Try it yourself

Compare a plan with no completed steps to one with all steps completed.

Open the React example →

Editorial date October 20, 2026 · Published December 6, 2026

Related articles

Percentage meter

A percentage meter needs both a bounded visual fill and a meaningful textual value. Handle a zero denominator before dividing.

Vertical typesetting sample

Vertical typesetting changes the reading direction and available inline space. Treat the sample text as content so it remains selectable and accessible.

Square cover crop

A square image crop gives a card grid consistent geometry. The crop anchor determines whether the most important part of a photo survives.