Interface: RegisterFormProps
Defined in: components/RegisterForm.tsx:15
Properties
afterRegistration?
optionalafterRegistration?: (user,accessToken?,refreshToken?,expiresAt?,anonymousCart?) =>void
Defined in: components/RegisterForm.tsx:85
Callback after the user is registered.
anonymousCart is the cart held in the parent's state at the moment of submission,
forwarded so the parent can merge it into the new user's cart.
Parameters
user
Contact | Customer
accessToken?
string
refreshToken?
string
expiresAt?
string
anonymousCart?
Cart | null
Returns
void
automaticLogin?
optionalautomaticLogin?:boolean
Defined in: components/RegisterForm.tsx:61
When true (default) the new contact/customer is automatically logged in
after registration: the SDK access token is set on the GraphQL client and
forwarded to afterRegistration so the parent can populate auth state.
When false, registration completes server-side but no session is kept;
afterRegistration is called without tokens so the parent can redirect
the user to the login page.
Default
true
beforeRegistration?
optionalbeforeRegistration?: () =>void
Defined in: components/RegisterForm.tsx:79
Callback before the registration process starts
Returns
void
buttonText?
optionalbuttonText?:string
Defined in: components/RegisterForm.tsx:32
Label for the submit button
Default
"Register"
cart?
optionalcart?:Cart|null
Defined in: components/RegisterForm.tsx:94
Anonymous cart snapshot from the parent's state — forwarded to afterRegistration.
countries?
optionalcountries?:Record<string,string>
Defined in: components/RegisterForm.tsx:114
List of countries to display in the country dropdown
Default
{}
displayLoginLink?
optionaldisplayLoginLink?:boolean
Defined in: components/RegisterForm.tsx:102
Show/hide the login link
Default
true
graphqlClient?
optionalgraphqlClient?:GraphQLClient
Defined in: components/RegisterForm.tsx:17
GraphQL client for the Propeller SDK. Resolved from PropellerProvider when omitted.
labels?
optionallabels?:Record<string,string>
Defined in: components/RegisterForm.tsx:76
Labels for the registration form fields.
Available keys:
- firstName, middleName, lastName, email, password, confirmPassword
- phone, gender, companyName, vatNumber, cocNumber
- street, number, numberExtension, postalCode, city, country
- userTypeLabel, contactLabel, customerLabel
- emailPlaceholder, passwordPlaceholder, passwordMismatch
- billingAddressTitle, deliveryAddressTitle, sameAsDelivery
- loginText, loginLink
- personalDetailsTitle, passwordTitle
onLoginClick?
optionalonLoginClick?: () =>void
Defined in: components/RegisterForm.tsx:97
Action for the login link click
Returns
void
preferredLanguage?
optionalpreferredLanguage?:string
Defined in: components/RegisterForm.tsx:108
Prefered language
Default
'NL'
requiredFields?
optionalrequiredFields?:string[]
Defined in: components/RegisterForm.tsx:50
Required fields for the registration form. Available field names: firstName, middleName, lastName, email, password, phone, mobile, gender, companyName, vatNumber, cocNumber, street, number, numberExtension, postalCode, city, country
Default
[]
showUserType?
optionalshowUserType?:"Contact"|"Customer"|null
Defined in: components/RegisterForm.tsx:41
Enable choosing between Contact or Customer if null, otherwise proceed with one user type registration only. 'Contact' = Company account (has company name, VAT, CoC fields) 'Customer' = Consumer/personal account
Default
null
subtitle?
optionalsubtitle?:string
Defined in: components/RegisterForm.tsx:27
Subtitle of the register form
Default
""
title?
optionaltitle?:string
Defined in: components/RegisterForm.tsx:22
Title of the register form
Default
"Create account"