# Multi-step Form (Pro)

> A pill that opens into a four-step form, then folds back into a summary.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Components › Inputs |
| Live preview | https://uibrik.com/components/multi-step-form |
| Writes | 1 file into `components/uibrik/multi-step-form/` |
| Packages | `@number-flow/react`, `@tabler/icons-react`, `motion`, `react-use-measure` (the CLI installs them) |
| Builds on | [squircle](https://uibrik.com/components/squircle.md) (installed with it) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 24, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/multi-step-form
```

No license yet? Tell the user Multi-step Form is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=multi-step-form#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
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) => {}}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/multi-step-form.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `label` | `string` | `"Create workspace"` | Text on the closed pill. |
| `submitLabel` | `string` | `"Create workspace"` | Text on the last step's button. |
| `duration` | `number` | `0.4` | How long the card takes to resize between steps. |
| `stagger` | `number` | `0.07` | Delay between width and height as the pill opens. |
| `swipe` | `boolean` | `true` | On touch, swipe between steps. |
| `progress` | `boolean` | `true` | Show the progress segments and step count. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `onComplete` | `(details: WorkspaceDetails) => void` |  | Called with name, workspace and role when the last step is confirmed. |
| `className` | `string` |  | Classes for the card. |

## Where it fits

- **Onboarding flows**: A pill opening into a four-step form keeps sign-up compact. Pairs with [Auth Forms](https://uibrik.com/components/auth-forms.md) (Pro).
- **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](https://uibrik.com/components/waitlist-input.md).

## Same shelf: Inputs

- [Radio Group](https://uibrik.com/components/radio-group.md): A radio group where one dot travels to the option you choose instead of blinking, as plain rows or bordered cards with an outline that follows, with full arrow-key control.
- [Reject Drop Input](https://uibrik.com/components/reject-drop-input.md): A text input that lets go of characters it can't accept: a rejected letter appears where it was typed, blushes red, tips over its corner and drops out of the field under real gravity, fading as it falls, while a short hint says what the field takes.
- [Segmented Control](https://uibrik.com/components/segmented-control.md): A segmented control whose pill slides between options on a spring, squishes when pressed and can be dragged across the segments like the one on iOS.
- [Spill Textarea](https://uibrik.com/components/spill-textarea.md): A textarea with a character limit. A ring fills as you write and turns amber near the end; past the limit each new letter blushes red, tips over and falls out of the field, leaving an empty gap where it was, or stays red while a copy of it falls.
- [Swap Fields](https://uibrik.com/components/swap-fields.md): A from/to pair whose fields trade places along opposite arcs when you press swap, carrying their values with them while the slot labels hand over.
- [Tactile Toggles](https://uibrik.com/components/tactile-toggles.md): A settings list whose switches squish under the finger, drag like the real thing, sweep a faint tint across the row as they turn on, and pause the rows they override.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/multi-step-form/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
