Onboarding Stepper
A three-question setup flow on one continuous surface: a progress capsule stretches into the current step with a shared-layout spring, panels slide in the direction of travel, validation speaks inline, and the finish holds its label with a spinner before landing on a tick.
Try it: Type a workspace name, press Enter, pick a role, add emails (try a typo).
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/onboarding-stepper.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/onboarding-stepper. You can also copy the source into components/ui/onboarding-stepper.tsx (view on GitHub).
Usage
import { OnboardingStepper } from '@/components/ui/onboarding-stepper'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
defaultValues | Partial<{ workspace, role, invites }> | — | Initial values. |
onComplete | (data) => void | Promise<void> | — | Submit handler; a rejected promise shows the error state. |
step / defaultStep / onStepChange | number | 0 | Controlled or uncontrolled step (0–3). |
className | string | — | Extra classes merged onto the card. |
Dependencies
motionlucide-react
Related Product UI components
- Sortable Data Table
A dense, quiet deployments table: sortable headers with aria-sort, search and status filter chips, rows that glide to their new order, hairline hover and selected tints, a bulk-action bar that…
- Usage Quota Meter
A billing-period usage card: hairline tracks fill with stacked segments on the house ease, figures count up in tabular numerals, a limit tick marks 100%, and bars go amber near the limit and rose…
- Date Range Picker
A calendar that previews the range as you hover with a continuous tinted band between endpoint pills, month pages that slide in the direction you move, preset chips, full grid keyboard support and a…
- Deploy Timeline
A build pipeline that reads like a calm status page: dots resolve to spinners to ticks, the rail fills as steps complete, elapsed times tick in tabular figures, each row expands into logs, and…
- Feedback State Panel
One surface for the screens nobody designs — empty, error, offline, permission and success — each with its own glyph and motion character, copy that names the next step, and a primary action with a…
- Vibrancy Context Menu
A macOS-grade context menu on regular glass that blooms from the exact pointer position, flips near the edges, glides a highlight capsule between rows, and blinks the chosen item once before…