Clerk logo

Clerk Docs

Ctrl + K
Go to


Access the SignUp object inside your components.


The useSignUp hook gives you access to the SignUp object inside your components.

You can use the methods of the SignUp object to create your own custom sign up flow, as an alternative to using Clerk's pre-built <SignUp/> component.

The SignUp object will also contain the state of the sign up attempt that is currently in progress, giving you the chance to examine all the details and act accordingly.


Getting access to the SignUp object from inside one of your components is easy. Note that the useSignUp hook can only be used inside a <ClerkProvider/> context.

The following example accesses the SignUp object to check the current sign up attempt's status.


For better type support, we highly recommend updating to at least Typescript 4.6. Applications using Typescript will benefit significantly from Typescript's new Control Flow Analysis for Dependent Parameters when using our hooks.

A more involved example follows below. In this example, we show an approach to create your own custom form for registering users.

We recommend using the <SignUp/> component instead of building your own custom registration form. It gives you a ready-made form and handles each step of the sign up flow.

Was this helpful?

Clerk © 2022