uibrik

Multi-step Form

Preview

Customize

Duration0.40s
Stagger0.07s

Usage

import { MultiStepForm } from "@/components/uibrik/multi-step-form/MultiStepForm";

<MultiStepForm />

Installation

npx shadcn@latest add https://uibrik.com/r/multi-step-form.json
Adds the files to components/uibrik/multi-step-form and installs @number-flow/react, @tabler/icons-react, motion and react-use-measure. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/multi-step-form.

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.