Skip to main content

`<SignOutButton />`

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

The SignOutButton component signs out the current user when clicked. It is auto-registered by the Nuxt module and requires no imports.

Usage​

Basic Usage​

components/NavBar.vue
<template>
<SignOutButton />
</template>

Custom Label​

components/NavBar.vue
<template>
<SignOutButton>Log out</SignOutButton>
</template>

Using the Default Slot for Full Control​

components/NavBar.vue
<template>
<SignOutButton>
<template #default="{ signOut, isLoading }">
<button :disabled="isLoading" @click="signOut">
{{ isLoading ? 'Signing out...' : 'Sign Out' }}
</button>
</template>
</SignOutButton>
</template>

Slots​

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

Props​

PropTypeRequiredDescription
preferencesPreferences❌Customization options for i18n and theming

Was this page helpful?