Components
Social Login Buttons
A stack of social provider sign-in buttons.
Installation
$ npx veil-ui@latest add social-login-buttonsUsage
import { SocialLoginButtons } from "@/components/ui/social-login-buttons";
<SocialLoginButtons
providers={["github", "google", "apple"]}
onSelect={startOAuth}
/>;Examples
Basic
Pair
API reference
The package exports social-login-buttons along with its composable parts. It forwards standard attributes to its root element; see the examples above for the component-specific props.
Accessibility
- Forms use native inputs with associated labels and descriptive error text.
- Submission states are announced through disabled controls and live error messaging.
- Social providers are buttons with discernible provider names.
Vue and plain HTML
This component also ships for Vue (Reka UI) and plain HTML. Install it with npx veil-ui add social-login-buttons --framework vue or switch the framework in components.json.
<template>
<div data-slot="social-login-buttons" class="grid gap-2 w-full max-w-sm"><button type="button" class="inline-flex h-9 w-full items-center justify-center gap-2 rounded-md border bg-background px-4 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50"><span aria-hidden="true" class="flex size-5 items-center justify-center rounded-full border bg-muted text-[10px] font-semibold">GH</span>Continue with GitHub</button><button type="button" class="inline-flex h-9 w-full items-center justify-center gap-2 rounded-md border bg-background px-4 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50"><span aria-hidden="true" class="flex size-5 items-center justify-center rounded-full border bg-muted text-[10px] font-semibold">G</span>Continue with Google</button><button type="button" class="inline-flex h-9 w-full items-center justify-center gap-2 rounded-md border bg-background px-4 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50"><span aria-hidden="true" class="flex size-5 items-center justify-center rounded-full border bg-muted text-[10px] font-semibold">A</span>Continue with Apple</button></div>
</template>