Form Progress

Form Progress is a copy-paste React component that stops form won't submit, field unknown 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/form-progress
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

StopsForm won't submit, field unknown

Was this component page useful?

How do I install Form Progress?

pnpm dlx shadcn@latest add @bollard/form-progress

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

How do I use Form Progress in React?

form-progress-usage.tsx
import { FormProgress } from "@/components/ui/form-progress"

<FormProgress formRef={formRef} className="sticky top-2 z-10" />

What input mistakes does Form Progress catch?

  • Required fields left empty
  • Fields failing native validation (pattern, minlength and similar)
  • Fields off-screen, by jumping to them

What props does Form Progress accept?

FormProgress props
PropTypeDefault
formRef* (required)

The form to watch.

React.RefObject<HTMLFormElement | null>—
nextLabel

Button text.

string"Next missing"
doneLabel

Shown once every required field is valid.

string"All required fields done"
labels

Override any other string.

Partial<typeof FORM_PROGRESS_LABELS>—

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

How is Form Progress accessible?

  • Field names come from their <label> (or aria-label/name)
  • Next missing moves focus to the field
  • Updates when required, disabled, hidden or inert attributes change

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

What are the limitations and server boundaries?

  • Relies on native required and constraint validation; custom validation isn't seen
  • Skips disabled, hidden and inert fields

What expensive mistakes does Form Progress stop?

Form won't submit, field unknown

Also known as

required fields · form progress · progress bar · validation · next missing · kyc form · application form · react hook form

What dependencies does Form Progress require?

Form Progress facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameForm Progress
Registry identifier@bollard/form-progress
Install commandnpx shadcn@latest add @bollard/form-progress
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 Form Progress

What form validation mistake does Form Progress catch?

Form Progress prevents form won't submit, field unknown. Counts required fields still empty or invalid and jumps to the next one, so people aren't left wondering why a form won't submit. Catches: Required fields left empty, Fields failing native validation (pattern, minlength and similar), Fields off-screen, by jumping to them. Limitation: validate form-progress schemas on backend.

How do I install form-progress with shadcn?

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

What props customize Form Progress?

Form Progress accepts `formRef`, `nextLabel`, `doneLabel`, `labels`. Configures required fields, form progress, progress bar behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of form-progress?

Relies on native required and constraint validation; custom validation isn't seen. Skips disabled, hidden and inert fields Server requirement: backend verification for form-progress.

How does Form Progress meet accessibility guidelines?

Field names come from their <label> (or aria-label/name). Next missing moves focus to the field. Updates when required, disabled, hidden or inert attributes change. Minimizes errors: why wont form submit, required field missing.

Which components pair with Form Progress?