ReactUserSignUp

A production-ready registration form with built-in validation for name, email format, and password strength. Automatically assigns a default role when none is provided.

Usage

Wrap the component inside AuthixProvider.

Jsx
1import { AuthixProvider, ReactUserSignUp } from "@neuctra/authix";
2
3<AuthixProvider authix={authix}>
4  <ReactUserSignUp
5    showAvatar={true}
6    roles={["buyer", "seller"]}
7    showRoleSelector={true}
8    loginUrl="/login"
9    onSuccess={(user) => console.log("Signed up:", user)}
10  />
11</AuthixProvider>

Props

Configuration options for customizing the signup form.

PropTypeDefaultDescription
logoUrlstringLogo image URL
logoLinkUrlstring/Logo link href (defaults to home)
titlestring"Create Your Account"Form title
subtitlestring"Join our platform today"Form subtitle
primaryColorstring"#00C214"Primary accent color
gradientstringgreen gradientBackground gradient style
darkModebooleantrueEnable dark theme
showAvatarbooleanfalseEnable avatar upload field
rolesstring[][]Available roles list
showRoleSelectorbooleanfalseShow role toggle UI
loginUrlstringRedirect URL for login page
onSuccess(user) => voidTriggered after successful signup
onError(error) => voidTriggered on signup failure

SDK Method Used

The component internally uses the following Neuctra Authix SDK method.

signupUser({ name, email, password, role, avatarUrl? })