Skip to content
Forms

MultiStepForm

One form split into steps. A rail fills as you go, steps slide in the direction you move, and each step must pass its normal field rules before the next opens.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
steps{ title, description?, content }[]โ€”The steps. Give fields a name and normal rules like required.
onSubmit(data: FormData) => voidโ€”Called with every field from every step.
submitLabelstring"Submit"Label of the last button.
successReactNode"All done. Thank you!"Shown once the form is sent.
accentstring"#a78bfa"Rail and button colour.
classNamestring"w-full max-w-md"Wrapper look.