Sign Up Form
Sign Up Form exposes values, validation and an asynchronous submit callback.
Practical React example
Collect account details with inline correction before the application creates an account.
Before you copy and paste
Keep the example in the React rendering environment required by the imported component. Copy components/motion/signup-form.tsx and its returned support files from the Code tab; preserve the project-relative paths.
Listed package dependencies: clsx, lucide-react, motion, react, tailwind-merge.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Collect account details with inline correction before the application creates an account
// Usage adapted from beUI's pinned MIT source.
// Copyright (c) 2026 Saurabh Chauhan. See ./LICENSES.md.
"use client";
import { useState } from "react";
import { SignUpForm } from "@/components/motion/signup-form";
export function SignUpFormPreview() {
const [formError, setFormError] = useState<string>();
return (
<div className="flex w-full justify-center py-4">
<SignUpForm
description="Sign up with taken@example.com to see the failure state."
errorMessage={formError}
onSubmit={async (values) => {
setFormError(undefined);
await new Promise((resolve) => setTimeout(resolve, 1200));
if (values.email.toLowerCase().startsWith("taken@")) {
setFormError("That email is already registered.");
throw new Error("Email already registered");
}
}}
footer={
<>
Already have an account?{" "}
<button
type="button"
className="font-medium text-foreground underline underline-offset-4"
>
Sign in
</button>
</>
}
/>
</div>
);
}
Usage example adapted from beUI's pinned MIT source. Retain the source licence notices when copying.
Return the real account-creation promise and map server validation errors to the relevant fields. Keep submission status aligned with the confirmed result.
Customization
- SignUpFormProps.values
- Optional; SignUpValues. Controlled values. Omit for uncontrolled.
- SignUpFormProps.defaultValues
- Optional; Partial<SignUpValues>.
- SignUpFormProps.onValuesChange
- Optional; (values: SignUpValues) => void.
- SignUpFormProps.onSubmit
- Optional; (values: SignUpValues) => void | Promise<void>. Called with valid values only. Return a promise to drive the button state.
- SignUpFormProps.validate
- Optional; (values: SignUpValues) => SignUpErrors. Replace the built-in rules — return a message per invalid field.
- SignUpFormProps.status
- Optional; SignUpStatus. Controlled submit state. Omit to let the form track it.
- SignUpFormProps.errorMessage
- Optional; string. Form-level failure message, shown above the submit button.
- SignUpFormProps.title
- Optional; ReactNode.
- SignUpFormProps.description
- Optional; ReactNode.
- SignUpFormProps.submitLabel
- Optional; string.
- SignUpFormProps.footer
- Optional; ReactNode.
- SignUpFormProps.strengthMeter
- Optional; boolean. Show the password strength meter.
- SignUpFormProps.className
- Optional; string.
- SignUpFormProps.classNames
- Optional; SignUpFormClassNames.
Integration notes
- Do not replace strong server validation with the example’s client rules.
- Handle passwords and consent through the intended identity flow without logging form values.
Component source: beUI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.