BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/formscn/detailed-application-form

detailed-application-form

formscn/detailed-application-form
FreeBlock

Multi-step detailed application form

Install it

npx shadcn@latest add https://formscn.space/r/detailed-application-form.json

Source

src/registry/default/templates/detailed-application-form.tsxformscn.space/r/detailed-application-form.json · first 6 KB
1"use client";
2
3import { useState } from "react";
4import { useForm, Controller } from "react-hook-form";
5import { zodResolver } from "@hookform/resolvers/zod";
6import * as z from "zod";
7import { Button } from "@/components/ui/button";
8import { Card, CardContent, CardDescription, CardHeader, CardTitle, CardFooter } from "@/components/ui/card";
9import { Input } from "@/components/ui/input";
10import { Label } from "@/components/ui/label";
11import { toast } from "sonner";
12import { cn } from "@/lib/utils";
13import { Progress } from "@/components/ui/progress";
14import { Textarea } from "@/components/ui/textarea";
15import {
16 Select,
17 SelectContent,
18 SelectItem,
19 SelectTrigger,
20 SelectValue,
21} from "@/components/ui/select";
22import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
23import PhoneInput from "react-phone-number-input";
24import "react-phone-number-input/style.css";
25
26const formSchema = z.object({
27 fullName: z.string().min(2, "Name required"),
28 email: z.string().email("Invalid email address"),
29 phone: z.string().optional().or(z.literal("")),
30 currentRole: z.string().min(2, "Role required"),
31 experienceYears: z.string().min(1, "Required"),
32 skills: z.string().min(10, "List some skills"),
33 portfolioUrl: z.string().optional().or(z.literal("")),
34 availability: z.enum(["immediate", "two-weeks", "one-month"]),
35 comments: z.string().optional().or(z.literal("")),
36});
37
38type FormValues = z.infer<typeof formSchema>;
39
40export function DetailedApplicationForm() {
41 const [currentStep, setCurrentStep] = useState(0);
42 const steps = [
43 {
44 "id": "contact",
45 "title": "Contact Info",
46 "description": "How can we reach you?",
47 "fields": [
48 "fullName",
49 "email",
50 "phone"
51 ]
52 },
53 {
54 "id": "experience",
55 "title": "Experience",
56 "description": "Your professional background",
57 "fields": [
58 "currentRole",
59 "experienceYears",
60 "skills"
61 ]
62 },
63 {
64 "id": "additional",
65 "title": "Additional Info",
66 "description": "Almost there",
67 "fields": [
68 "portfolioUrl",
69 "availability",
70 "comments"
71 ]
72 }
73];
74
75 const form = useForm<FormValues>({
76 resolver: zodResolver(formSchema),
77 defaultValues: {
78 fullName: "",
79 email: "",
80 phone: "",
81 currentRole: "",
82 experienceYears: "",
83 skills: "",
84 portfolioUrl: "",
85 availability: "immediate",
86 comments: "",
87 },
88 mode: "onChange",
89 });
90
91// … truncated

What it pulls in

npm packages

  • react-hook-form
  • @hookform/resolvers
  • zod
  • sonner
  • react-phone-number-input
  • libphonenumber-js

Other registry items

  • https://formscn.space/r/button.json
  • https://formscn.space/r/card.json
  • https://formscn.space/r/input.json
  • https://formscn.space/r/textarea.json
  • https://formscn.space/r/label.json
  • https://formscn.space/r/select.json

Files it writes

  • src/registry/default/templates/detailed-application-form.tsx

Facts

Registry
formscn
Type
registry:block
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

formscn.space AbdullahMukadam/formscn on GitHub Raw registry item This item as JSON

More from formscn

All 30 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
base-formbase-formformscnBlocksFree2 deps
booking-request-formbooking-request-formformscnBlocksFree4 deps
contact-formcontact-formformscnBlocksFree4 deps
ecommerce-checkout-formecommerce-checkout-formformscnBlocksFree4 deps
event-registration-formevent-registration-formformscnBlocksFree4 deps
feedback-formfeedback-formformscnBlocksFree4 deps
job-application-formjob-application-formformscnBlocksFree6 deps
login-formlogin-formformscnBlocksFree4 deps
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex