Skip to content
Browse library
BIU UI/Components/Stepper Form
COMPONENTSPro

Stepper Form

Explore the Stepper Form component and try its interactive examples.

INTERACTIVE PREVIEW

Preview

Loading preview…
GET STARTED

Installation

BIU UI ProEarly Access · Coming Soon
Stepper Form source is part of BIU UI Pro

The interactive preview and API reference are open to try right here. Full single-file TSX source and @biudev-pro/stepper-form shadcn Registry installs are reserved for BIU UI Pro. Meanwhile, all 41 core components and 2 starter blocks are free and open source under MIT.

npx shadcn@latest add @biudev-pro/stepper-form

Usage

Start with this example, then adjust the import path for your project.

EXAMPLE / TSX
"use client";
import { StepperChoices, StepperField, StepperForm, StepperInput } from "@/components/ui/biu/stepper-form";

export const Example = () => (
  <StepperForm
    initialValues={{ name: "", plan: "pro" }}
    steps={[
      {
        id: "name",
        title: "Workspace",
        validate: (v) => (!v.name.trim() ? { name: "Required." } : undefined),
        render: ({ values, setValues }) => (
          <StepperField name="name" label="Workspace name">
            <StepperInput
              value={values.name}
              onChange={(e) => setValues({ ...values, name: e.target.value })}
            />
          </StepperField>
        ),
      },
      {
        id: "plan",
        title: "Plan",
        render: ({ values, setValues }) => (
          <StepperChoices
            label="Subscription plan"
            value={values.plan}
            onChange={(plan) => setValues({ ...values, plan })}
            options={[
              { value: "free", title: "Free" },
              { value: "pro", title: "Pro" },
            ]}
          />
        ),
      },
    ]}
  />
);

Examples

Try each example or switch to its code.

API reference

Properties and defaults from the component source. An asterisk marks a required property; a dash means no explicit default.

StepErrors

Also accepts properties from Record<string, string | undefined>.

StepperStepContext

StepperStep

StepperFormVariant

Also accepts properties from 'clean' & 'tray'.

Some properties depend on the variant; consult the source for the full union.

StepperFormLabels

StepperFormProps

Also accepts properties from Omit<ComponentPropsWithRef<'div'>, 'children'>.

StepperFieldProps

StepperInputProps

Also accepts properties from ComponentPropsWithRef<'input'>.

StepperTagsProps

StepperChoiceOption

StepperChoicesProps

StepperReviewRow

StepperReviewProps

StepperSuccessProps

Source

BIU UI ProEarly Access · Coming Soon
Stepper Form source is part of BIU UI Pro

The interactive preview and API reference are open to try right here. Full single-file TSX source and @biudev-pro/stepper-form shadcn Registry installs are reserved for BIU UI Pro. Meanwhile, all 41 core components and 2 starter blocks are free and open source under MIT.

npx shadcn@latest add @biudev-pro/stepper-form