Review Step

Review Step is a copy-paste React component that stops wrong answer submitted in a wizard before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/review-step
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 1 extra npm package
  • A11y guidance in docs

StopsWrong answer submitted in a wizard

Was this component page useful?

How do I install Review Step?

pnpm dlx shadcn@latest add @bollard/review-step

The files land in your project. They're yours to edit.

How do I use Review Step in React?

review-step-usage.tsx
import { ReviewStep, type ReviewGroup } from "@/components/ui/review-step"

<ReviewStep
  steps={steps}
  previous={lastTime}
  onEdit={(step, field) => setEditing({ step, field })}
  onSubmit={() => new Promise((resolve) => setTimeout(resolve, 900))}
  submitLabel="Confirm and pay ₹4,990"
/>

What input mistakes does Review Step catch?

  • Missing required answers, blocking submit
  • Empty optional fields, shown as "Not provided"
  • Values changed since the previous submission
  • A click carried over from the previous step's button (guard window)
  • Repeat clicks while the submit is pending

What props does Review Step accept?

ReviewStep props
PropTypeDefault
steps* (required)

Every step of the form with its answers, in order.

ReviewGroup[]—
previous

Answers from the last submission, keyed by field id. Changed answers are highlighted.

Record<string, ReviewValue>—
onEdit* (required)

Jump back to a step, focusing that field when `fieldId` is given.

(stepId: string, fieldId?: string) => void—
onSubmit* (required)

Sends the form. Return a promise to show a pending state; a rejection re-enables submit.

() => void | Promise<void>—
guard

Clicks sooner than this (ms) after the review appears are ignored, so a double-click or held Enter on "Next" can't submit.

number700
heading

Heading above the review.

string"Check your answers"
submitLabel

Label of the submit button.

string"Submit"
pendingLabel

Submit label while onSubmit runs.

string"Submitting…"
doneLabel

Submit label after success.

string"Submitted"
editLabel

Label of each Edit button.

string"Edit"
addLabel

Label shown instead of Edit for an empty field.

string"Add"
emptyText

Shown for an empty optional answer.

string"Not provided"
missingText

Shown for a missing required answer.

string"Answer required"
changedText

Marks a value changed since last time.

string"Changed"
errorText

Shown when onSubmit rejects.

string"Couldn't submit. Nothing was sent, so you can try again."
missingHint

Under a blocked submit button. `{fields}` lists what is missing.

string"Answer {fields} to submit."

* required. Also accepts the native props of <div> (className, aria-*, data-*…), passed through to it.

How is Review Step accessible?

  • Each step is a section labelled by its title
  • Edit/Add buttons have aria-labels naming the step or field
  • Submit is described by the missing-answers note; errors use role=alert
  • Changed values have a sr-only "Previously:" prefix

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

This is a UX guard rail. Enforce on the server: Validate every answer again and make the final submit idempotent on the server.

  • Duplicate protection is client-side only
  • Display formatting is yours (pass format for money or masking)

What expensive mistakes does Review Step stop?

Wrong answer submitted in a wizard

Also known as

review page · summary step · confirm details · wizard · stepper · multi-step form · checkout review · application review

What dependencies does Review Step require?

Review Step facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameReview Step
Registry identifier@bollard/review-step
Install commandnpx shadcn@latest add @bollard/review-step
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Review Step

How does Review Step prevent financial transaction errors?

Review Step prevents wrong answer submitted in a wizard. Blocks Missing required answers, blocking submit, Empty optional fields, shown as "Not provided", Values changed since the previous submission, A click carried over from the previous step's button (guard window), Repeat clicks while the submit is pending before processing. Limitation: apply idempotency keys for review-step.

How do I install review-step with shadcn?

Run `npx shadcn@latest add @bollard/review-step`. Sources added: registry/default/review-step/review-step.tsx. Package requirements: lucide-react.

What props customize Review Step?

Review Step accepts `steps`, `previous`, `onEdit`, `onSubmit`, `guard`. Configures review page, summary step, confirm details behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of review-step?

Duplicate protection is client-side only. Display formatting is yours (pass format for money or masking) Server requirement: Validate every answer again and make the final submit idempotent on the server.

How does Review Step meet accessibility guidelines?

Each step is a section labelled by its title. Edit/Add buttons have aria-labels naming the step or field. Submit is described by the missing-answers note; errors use role=alert. Changed values have a sr-only "Previously:" prefix. Minimizes errors: submitted wrong details, no review before submit.

Which components pair with Review Step?