BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/formscn/booking-request-form

booking-request-form

formscn/booking-request-form
FreeBlock

Booking request form with date and service selection

Install it

npx shadcn@latest add https://formscn.space/r/booking-request-form.json

Source

src/registry/default/templates/booking-request-form.tsxformscn.space/r/booking-request-form.json
1"use client";
2
3import { useForm, Controller } from "react-hook-form";
4import { zodResolver } from "@hookform/resolvers/zod";
5import * as z from "zod";
6import { Button } from "@/components/ui/button";
7import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
8import { Input } from "@/components/ui/input";
9import { Label } from "@/components/ui/label";
10import { toast } from "sonner";
11import { Textarea } from "@/components/ui/textarea";
12import {
13 Select,
14 SelectContent,
15 SelectItem,
16 SelectTrigger,
17 SelectValue,
18} from "@/components/ui/select";
19
20const formSchema = z.object({
21 name: z.string().min(2, "Name is required"),
22 email: z.string().email("Invalid email"),
23 date: z.string().min(1, "Date is required"),
24 service: z.enum(["consultation", "demo", "support"]),
25 notes: z.string().optional(),
26});
27
28type FormValues = z.infer<typeof formSchema>;
29
30export function BookingRequestForm() {
31 const form = useForm<FormValues>({
32 resolver: zodResolver(formSchema),
33 defaultValues: {
34 name: "",
35 email: "",
36 date: "",
37 service: "consultation",
38 notes: "",
39 },
40 });
41
42 const onSubmit = async (data: FormValues) => {
43 console.log("Form submitted:", data);
44 toast.success("Form submitted successfully!");
45 };
46
47 return (
48 <Card className="w-full max-w-md mx-auto">
49 <CardHeader>
50 <CardTitle>Booking Request</CardTitle>
51 <CardDescription>Request a booking or appointment</CardDescription>
52 </CardHeader>
53 <CardContent>
54 <form onSubmit={form.handleSubmit(onSubmit)} className="space-y-4">
55 <div className="space-y-2">
56 <Label htmlFor="name">Your Name</Label>
57 <Input
58 id="name"
59 type="text"
60 placeholder="John Doe"
61 {...form.register("name")}
62 />
63 {form.formState.errors.name && (
64 <p className="text-sm text-destructive">{form.formState.errors.name.message}</p>
65 )}
66 </div>
67
68 <div className="space-y-2">
69 <Label htmlFor="email">Email Address</Label>
70 <Input
71 id="email"
72 type="email"
73 placeholder="john@example.com"
74 {...form.register("email")}
75 />
76 {form.formState.errors.email && (
77 <p className="text-sm text-destructive">{form.formState.errors.email.message}</p>
78 )}
79 </div>
80
81// … truncated

What it pulls in

npm packages

  • react-hook-form
  • @hookform/resolvers
  • zod
  • sonner

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
  • https://formscn.space/r/radio-group.json

Files it writes

  • src/registry/default/templates/booking-request-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
today

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
contact-formcontact-formformscnBlocksFree4 deps
detailed-application-formdetailed-application-formformscnBlocksFree6 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