NuxtLegoNuxtLego

Auth UI

Primitive Auth UI with Social Providers and Native Form.

NuxtLego

Create your account

to continue to NuxtLego

Have an account? Sign In
Available Providers
  • Facebook
  • Twitter
  • Google
  • Discord
  • GitHub
  • GitLab
  • Apple
  • Slack
  • Azure
  • Bitbucket
  • Tiktok

Anatomy

<template>
  <LegoAuth
    :hide-provider-label="true"
    :providers="['twitter', 'google', 'facebook']"
  >
    <LegoAuthHeader />

    <LegoAuthSocialProviders @select="handleSelectProvider" />

    <LegoAuthForm @submit="handleSubmit">
      <LegoAuthFormInputText />

      <LegoAuthFormButton />
    </LegoAuthForm>
  </LegoAuth>
</template>

API Reference

Root

Wrapper that provide the information required for the child component.

PropDefaultTypesDescription
providers-Provider[]List the social providers you need
hideProviderLabel-booleanHide the label for social provider button

Event

NameComponentPayloadDescription
@selectLegoAuthSocialProvidersProviderEvent triggered when selecting social provider
@submitLegoAuthForm{ [key]: any }Event triggered when click on