Ballmac UI home

Stepper Form

A guided multistep form shell with gated progression, review states, and keyboard-accessible navigation.

Step 1 of 3

Details

Name your workspace.

Ready

Installation

$ pnpm dlx shadcn@latest add @ballmac/stepper-form

Usage

import { StepperForm } from "@/components/ballmac/stepper-form"

The full example is in the Code tab above.

Examples

States and variants

Step 1 of 2

Invite

Send an invitation to a teammate.

Ready

API reference

PropTypeDefault
steps*

Ordered steps in the flow.

StepperStep[]—
value

Controlled zero-based step index.

number—
defaultValue

Initial zero-based step index.

number0
onValueChange

Called when the step changes.

(index: number) => void—
onComplete

Called after the last step is completed.

() => void—
completeLabel

Label for the final action.

string—

Also accepts the standard attributes of its root element.

Accessibility

KeyAction
Tab / Enter / SpaceNavigates steps and completes the flow

Use with AI

A guided multistep form shell with gated progression, review states, and keyboard-accessible navigation. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Stepper Form (@ballmac/stepper-form) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Guide a long onboarding or setup process

Not for

  • Use a single form for short tasks

Registry JSON: https://ui.ballmac.com/r/stepper-form.json

Credits

Free to use in personal and commercial projects.