BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/clerk/nextjs-custom-flows-multistep-onboarding

Multistep Onboarding Flow

clerk/nextjs-custom-flows-multistep-onboarding
FreeBlock

A custom sign-up and sign-in onboarding flow using Clerk's useSignIn and useSignUp hooks with animated step transitions.

Install it

npx shadcn@latest add https://clerk.com/r/nextjs-custom-flows-multistep-onboarding.json

Source

nextjs/custom-flows/multistep-onboarding/page.tsxclerk.com/r/nextjs-custom-flows-multistep-onboarding.json · first 6 KB
1'use client';
2
3import { AnimatePresence, motion, useReducedMotion } from 'motion/react';
4import { useState, useCallback, useMemo, useEffect, useRef } from 'react';
5import { useRouter } from 'next/navigation';
6import { useForm } from '@tanstack/react-form';
7import { useSignIn, useSignUp, useOrganizationList, useOrganizationCreationDefaults, useSession } from '@clerk/nextjs';
8import { Button } from '@/components/ui/button';
9import { Checkbox } from '@/components/ui/checkbox';
10import { Field, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSet } from '@/components/ui/field';
11import { Input } from '@/components/ui/input';
12import { InputOTP, InputOTPGroup, InputOTPSlot } from '@/components/ui/input-otp';
13import { REGEXP_ONLY_DIGITS } from 'input-otp';
14import { RefreshCwIcon, ChevronLeftIcon, LoaderIcon, CameraIcon, XIcon } from 'lucide-react';
15import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group';
16import { Testimonials } from '@/components/ui/testimonials';
17
18type Step = 'email' | 'welcome' | 'company' | 'account' | 'verify' | 'org';
19type VerifyMode = 'sign_up_email_code' | 'client_trust_email_code' | null;
20
21function toFieldErrors(errors: unknown[]): { message: string }[] {
22 return errors.map(e => ({
23 message: typeof e === 'string' ? e : String(e),
24 }));
25}
26
27const SIGNUP_STEPS: Step[] = ['company', 'account', 'verify', 'org'];
28
29const STEP_FIELDS: Record<Step, string[]> = {
30 email: ['email'],
31 welcome: ['password'],
32 company: ['companySize'],
33 account: ['firstName', 'lastName', 'password', 'agreedToTerms'],
34 verify: ['otpCode'],
35 org: ['orgName'],
36};
37
38const COMPANY_SIZES = ['1-10', '11-50', '51-200', '201-500', '501-1000', '1000+'] as const;
39
40const QUOTES = [
41 {
42 quote:
43 'This has completely reshaped how our team thinks about onboarding. The flow is intuitive, the defaults feel right, and our activation numbers jumped within the very first week of rolling it out.',
44 cite: 'Maya Chen, CTO',
45 },
46 {
47 quote:
48 'Adopting it saved our small engineering team months of work. The primitives are flexible enough to fit our brand, secure enough for our enterprise customers, and the team behind it actually listens to feedback and ships fixes fast.',
49 cite: 'Jordan Whitfield, Head of Engineering',
50 },
51 {
52 quote:
53 "We rebuilt our entire signup experience in an afternoon. It's easily the best developer experience we've had all year.",
54 cite: 'Priya Anand, Co-founder',
55 },
56];
57
58const dotVariants = {
59// … truncated

What it pulls in

npm packages

  • @clerk/nextjs
  • @clerk/ui
  • @tanstack/react-form
  • motion
  • react-use-measure
  • input-otp
  • lucide-react
  • class-variance-authority

Other registry items

  • button
  • checkbox
  • field
  • input
  • input-otp
  • label
  • radio-group

Files it writes

  • nextjs/custom-flows/multistep-onboarding/page.tsx
  • nextjs/common/multistep-onboarding/layout.tsx
  • nextjs/common/multistep-onboarding/testimonials.tsx
  • nextjs/common/multistep-onboarding/clerk-provider.tsx
  • nextjs/common/multistep-onboarding/proxy.ts

Facts

Registry
clerk
Type
registry:block
Access
Free
Files written
5
Licence
the repository states none
In the index
at or before 2026-08-08
Last confirmed
today

Go to the source

clerk.com Raw registry item This item as JSON

More from clerk

All 12 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Multistep Onboarding Flow (AIO)nextjs-aio-multistep-onboardingclerkBlocksFree5 deps · 6 files
Layout with Headernextjs-layout-with-headerclerkBlocksFree3 deps
Clerk Next.js Quickstart (App Router)nextjs-quickstartclerkBlocksFree3 deps · 3 files
Clerk Next.js Quickstart — Sign-in-or-up (App Router)nextjs-quickstart-sign-in-or-upclerkBlocksFree3 deps · 2 files
Clerk Next.js Sign In Page (App Router)nextjs-sign-in-pageclerkBlocksFree1 dep
Clerk Next.js Sign Up Page (App Router)nextjs-sign-up-pageclerkBlocksFree2 deps
Clerk Next.js Waitlist Page (App Router)nextjs-waitlist-pageclerkBlocksFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex