Updated
Multi-step Form
ProCustomize
Duration0.40s
Stagger0.07s
Installation
ProMulti-step Form is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/multi-step-form
Loading your installation…
Usage
import { MultiStepForm } from "@/components/uibrik/multi-step-form/MultiStepForm";<MultiStepForm label="Create workspace" submitLabel="Create workspace" duration={0.4} stagger={0.07} swipe progress onComplete={(details) => {}}/>Where to use Multi-step Form
Onboarding flows
A pill opening into a four-step form keeps sign-up compact.
Pairs with Auth Forms
Booking requests
Folding back into a summary lets users check their answers in one place.
Lead capture
A small pill that grows into a form asks for details only once a visitor shows interest.
Pairs with Waitlist Input
Props
MultiStepForm- label
- Type string
- "Create workspace"
- Text on the closed pill.
- submitLabel
- Type string
- "Create workspace"
- Text on the last step's button.
- duration
- Type number
- 0.4
- How long the card takes to resize between steps.
- stagger
- Type number
- 0.07
- Delay between width and height as the pill opens.
- swipe
- Type boolean
- true
- On touch, swipe between steps.
- progress
- Type boolean
- true
- Show the progress segments and step count.
- onComplete
- Type (details: WorkspaceDetails) => void
- –
- Called with name, workspace and role when the last step is confirmed.
- className
- Type string
- –
- Classes for the card.