Skip to main content

Create Account component

Displays a sign up form to allow the creation of new accounts. The fields available to the user are customizable.

Props

NameDescriptionDefault
onSuccessCallback function that is invoked when a user successfully signs up. This provides the new accountId as a-
onErrorcallback function that is invoked when there is an error on sign up.-
mobileNumberFieldSet to required to include a mobile number input field on the sign up form.off
nameFieldSet 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...