Skip to main content

`<SignUpButton />`

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

The SignUpButton component initiates the sign-up flow when clicked. It is auto-registered by the Nuxt module and requires no imports.

Usage​

Basic Usage​

pages/index.vue
<template>
<SignUpButton />
</template>

Custom Label​

pages/index.vue
<template>
<SignUpButton>Create an account</SignUpButton>
</template>

Using the Default Slot for Full Control​

pages/index.vue
<template>
<SignUpButton>
<template #default="{ signUp, isLoading }">
<button :disabled="isLoading" @click="signUp">
{{ isLoading ? 'Redirecting...' : 'Get Started' }}
</button>
</template>
</SignUpButton>
</template>

Slots​

SlotSlot PropsDescription
default{ signUp: () => void, isLoading: boolean }Custom content rendered inside the button. If omitted, renders a default "Sign Up" button

Props​

PropTypeRequiredDescription
preferencesPreferences❌Customization options for i18n and theming

Was this page helpful?