The useSignUp() composable provides access to the SignUpJavaScript Icon object, which allows you to check the current state of a sign-up attempt and manage the sign-up flow. You can use this to create a custom sign-up flow.
The following example uses the useSignUp() hook to access the SignUpJavaScript Icon object, which contains the current sign-up attempt status and methods to create a new sign-up attempt. The isLoaded property is used to handle the loading state.
SignUpStep.vue
<scriptsetup>import { useSignUp } from'@clerk/vue'const { isLoaded,signUp } =useSignUp()</script><template> <divv-if="!isLoaded"><!-- Handle loading state --> </div> <divv-else>The current sign-up attempt status is {{ signUp?.status }}.</div></template>