shadcn/ui Registry Component

Schema-Driven Forms
Made Simple

A powerful React hook that wraps TanStack Form with shadcn/ui components. Features schema validation, multi-page support, component overrides, and custom wrappers.

Rental Car Flow Form
Personalized one-field-per-page flow with conditional logic and dynamic text

Rental Car Finder

Answer a few questions and we'll find the perfect car for your trip. This form demonstrates dynamic text that personalizes based on your responses.

Dynamic TextOne Field Per PageConditional LogicFlow Form
Step 1 of 190%

Welcome to Your Perfect Rental Experience!

Let's find you the ideal car for your upcoming adventure

Installation & Setup

Get the use-formedible hook installed in your project that uses shadcn/ui

Install via shadcn CLI
This installs the hook, all field components, and their dependencies automatically.
npx shadcn@latest add https://formedible.dev/r/use-formedible.json
Basic Usage Example
Quick example showing how to create a form with validation
import { useFormedible } from "@/hooks/use-formedible";
import { z } from "zod";
const schema = z.object({
email: z.string().email("Invalid email"),
message: z.string().min(10, "Message too short"),
});
export function MyForm() {
const { Form } = useFormedible({
schema,
fields: [
{ name: "email", type: "email", label: "Email" },
{ name: "message", type: "textarea", label: "Message" },
],
formOptions: {
defaultValues: { email: "", message: "" },
onSubmit: async ({ value }) => console.log(value),
},
});
return <Form />;
}
📦 What Gets Installed
Complete package includes everything you need
  • hooks/use-formedible.tsx - Main form hook
  • components/fields/* - All field components (text, select, date, etc.)
  • All required shadcn/ui components and dependencies
  • TypeScript definitions and component interfaces

Component Features

Everything you need for building powerful forms with shadcn/ui

Schema Validation
Built-in Zod schema validation with real-time error handling and type safety
Component Override
Replace any field component with your custom implementations seamlessly
Custom Wrappers
Add animations, special styling, or extra functionality to any field
Multi-Page Forms
Built-in pagination with customizable progress indicators and navigation