Default
Code
<div class="w-full max-w-sm">
<twig:SocialLogin :providers="[
{provider: 'google', href: '#'},
{provider: 'facebook', href: '#'},
{provider: 'github', href: '#'}
]" alternativeHref="#" />
</div>
A static copy of the demo at release 0.3.0. Live Components, Turbo Streams and form submits need Symfony: run the full demo.
A provider login or registration card with authentication feedback and optional password-form content.
In this static copy, provider sign-in requires the application server; the static examples show the login and registration cards. Run the full demo to try it.
php bin/console ux:install social-login \
--kit=https://github.com/xormania/uxor:0.3.0
templates/ → templates/ twig/html-extra:^3.24.0symfony/ux-twig-component:^3.5tales-from-a-dev/twig-tailwind-extra:^1.3.0<div class="w-full max-w-sm">
<twig:SocialLogin :providers="[
{provider: 'google', href: '#'},
{provider: 'facebook', href: '#'},
{provider: 'github', href: '#'}
]" alternativeHref="#" />
</div>
<div class="w-full max-w-sm">
<twig:SocialLogin mode="signup" :providers="[
{provider: 'google', href: '#'},
{provider: 'github', href: '#'}
]" alternativeHref="#" />
</div>
<div class="w-full max-w-sm">
<twig:SocialLogin :providers="[{provider: 'github', href: '#'}]" feedback="Sign-in was cancelled. Choose a provider to try again." feedbackVariant="warning">
<p class="text-center text-sm text-body">Your application's email sign-in form appears here.</p>
</twig:SocialLogin>
</div>