TidalUI

Multi-step form preview

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

pro · Forms · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

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

Import components/ui/tidal.css, components/ui/multi-step-form.css. Wrap installed components in tidal-scope.

Preview

Multi-step form component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/multi-step-form.css";
import{TidalMultiStepForm}from"./components/ui/multi-step-form";
export default()=><div className="tidal-scope"><TidalMultiStepForm currentStepId={"example"} onStepChange={() => {}} steps={[{id:"example",label:"Demo",title:"Demo",content:"value"}]} title={"Demo"}/></div>;

API and props

TidalMultiStepForm.currentStepId (required)
string

Required current step id value accepted by this exported component.

TidalMultiStepForm.onStepChange (required)
(nextStepId: string, source: TidalMultiStepChangeSource, event: TidalMultiStepChangeEvent) => void

Callback invoked when the step change interaction is proposed.

TidalMultiStepForm.steps (required)
ReadonlyArray<TidalMultiStepFormStep>

Required steps value accepted by this exported component.

TidalMultiStepForm.title (required)
ReactNode

Required title value accepted by this exported component.

TidalMultiStepForm.backButtonProps
Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type" | "children"> | undefined

Optional back button props value accepted by this exported component.

TidalMultiStepForm.backButtonRef
Ref<HTMLButtonElement> | undefined

Optional back button ref value accepted by this exported component.

TidalMultiStepForm.busy
boolean | undefined

Optional busy value accepted by this exported component.

TidalMultiStepForm.continueButtonProps
Omit<ButtonHTMLAttributes<HTMLButtonElement>, "form" | "type" | "children"> | undefined

Optional continue button props value accepted by this exported component.

TidalMultiStepForm.continueButtonRef
Ref<HTMLButtonElement> | undefined

Optional continue button ref value accepted by this exported component.

TidalMultiStepForm.description
ReactNode

Optional description value accepted by this exported component.

TidalMultiStepForm.error
ReactNode

Optional error value accepted by this exported component.

TidalMultiStepForm.eyebrow
ReactNode

Optional eyebrow value accepted by this exported component.

TidalMultiStepForm.footer
ReactNode

Optional footer value accepted by this exported component.

TidalMultiStepForm.headingLevel
"h2" | "h3" | "h4" | undefined

Optional heading level value accepted by this exported component.

TidalMultiStepForm.labels
Partial<TidalMultiStepFormLabels> | undefined

Optional labels value accepted by this exported component.

TidalMultiStepForm.onFinalSubmit
((event: FormEvent<HTMLFormElement>) => void) | undefined

Callback invoked when the final submit interaction is proposed.

TidalMultiStepForm.persistentFields
ReactNode

Optional persistent fields value accepted by this exported component.

TidalMultiStepForm.stepHeadingLevel
"h3" | "h4" | "h5" | undefined

Optional step heading level value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas