Home / Function/ SignupForm() — ui Function Reference

SignupForm() — ui Function Reference

Architecture documentation for the SignupForm() function in signup-form.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  34fbee7c_d9a2_eb63_cb7a_b57c9cbf1f4d["SignupForm()"]
  13179b5f_fb10_c1c8_b8de_98b65285aed8["signup-form.tsx"]
  34fbee7c_d9a2_eb63_cb7a_b57c9cbf1f4d -->|defined in| 13179b5f_fb10_c1c8_b8de_98b65285aed8
  style 34fbee7c_d9a2_eb63_cb7a_b57c9cbf1f4d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/blocks/signup-03/components/signup-form.tsx lines 18–80

export function SignupForm({
  className,
  ...props
}: React.ComponentProps<"div">) {
  return (
    <div className={cn("flex flex-col gap-6", className)} {...props}>
      <Card>
        <CardHeader className="text-center">
          <CardTitle className="text-xl">Create your account</CardTitle>
          <CardDescription>
            Enter your email below to create your account
          </CardDescription>
        </CardHeader>
        <CardContent>
          <form>
            <FieldGroup>
              <Field>
                <FieldLabel htmlFor="name">Full Name</FieldLabel>
                <Input id="name" type="text" placeholder="John Doe" required />
              </Field>
              <Field>
                <FieldLabel htmlFor="email">Email</FieldLabel>
                <Input
                  id="email"
                  type="email"
                  placeholder="m@example.com"
                  required
                />
              </Field>
              <Field>
                <Field className="grid grid-cols-2 gap-4">
                  <Field>
                    <FieldLabel htmlFor="password">Password</FieldLabel>
                    <Input id="password" type="password" required />
                  </Field>
                  <Field>
                    <FieldLabel htmlFor="confirm-password">
                      Confirm Password
                    </FieldLabel>
                    <Input id="confirm-password" type="password" required />
                  </Field>
                </Field>
                <FieldDescription>
                  Must be at least 8 characters long.
                </FieldDescription>
              </Field>
              <Field>
                <Button type="submit">Create Account</Button>
                <FieldDescription className="text-center">
                  Already have an account? <a href="#">Sign in</a>
                </FieldDescription>
              </Field>
            </FieldGroup>
          </form>
        </CardContent>
      </Card>
      <FieldDescription className="px-6 text-center">
        By clicking continue, you agree to our <a href="#">Terms of Service</a>{" "}
        and <a href="#">Privacy Policy</a>.
      </FieldDescription>
    </div>
  )
}

Subdomains

Frequently Asked Questions

What does SignupForm() do?
SignupForm() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/blocks/signup-03/components/signup-form.tsx.
Where is SignupForm() defined?
SignupForm() is defined in apps/v4/registry/bases/radix/blocks/signup-03/components/signup-form.tsx at line 18.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free