Component libraryMulti-step form

Multi-step form

Pro

A controlled native form shell with progress, step review, validation-aware continuation and focus recovery.

npx shadcn@latest add @tidal-pro/multi-step-form
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/multi-step-form

Import components/ui/tidal.css, components/ui/multi-step-form.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

title, unique consumer-owned steps, currentStepId and onStepChange are required. Each step supplies id, label, title and content, with optional description, optional/complete state, panel attributes and ref. A native progress element and visible ordered step rail expose the controlled position. Intermediate native submit events run browser constraint validation before the controlled Continue transition; the final step preserves native form action/method and submitter overrides unless onFinalSubmit prevents submission. Back and Continue preserve native button attributes, dedicated refs, caller click prevention, explicit aria-disabled false and 44px targets. An accepted internal Back/Continue transition within one second moves focus once to the new labelled panel only while the source still owns focus; a declined or superseded transition clears its pending intent without stealing focus later. Optional persistentFields accepts consumer-owned type=hidden mirrors so final native FormData can include values from unmounted prior steps. Optional error, busy, footer, root/step heading levels, labels and native form attributes/ref are consumer-owned. Busy keeps the submit control focusable with aria-disabled. The component owns no field values, validation policy, account, request, network, storage or completion outcome.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.