Create Account component
Displays a sign up form to allow the creation of new accounts. The fields available to the user are customizable.
Props
Name | Description | Default |
---|---|---|
onSuccess | Callback function that is invoked when a user successfully signs up. This provides the new accountId as a | - |
onError | callback function that is invoked when there is an error on sign up. | - |
mobileNumberField | Set to required to include a mobile number input field on the sign up form. | off |
nameField | Set to required to include a name input field on the sign up form. | off |
Context
This component requires CHP Context.
Example
Example usage
import { CreateAccountForm } from '@truepill/chp-components';
<CreateAccountForm mobileNumberField="required" nameField="required" />
Playground
Live Editor
Result
Loading...