Components
Social Auth Button
Provider-branded OAuth sign-in button for all 16 supported identity providers, with official brand logos, an opt-in colorful weight, and built-in loading state (wraps StatefulButton). Includes 16 pre-bound shortcuts (GoogleAuthButton, GitHubAuthButton, …).
Installation
npx shadcn@latest add https://ui.saasflare.io/r/social-auth-button.jsonpnpm add @saasflare/uiAll Providers
Loading…
"use client"import { SocialAuthButton, SOCIAL_AUTH_PROVIDERS } from "@saasflare/ui"/** * Every supported identity provider — mapped from `SOCIAL_AUTH_PROVIDERS`. * Sixteen branded buttons, no per-provider wiring beyond the `provider` prop. */export function Demo() { return ( <div className="grid w-full grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3"> {SOCIAL_AUTH_PROVIDERS.map((provider) => ( <SocialAuthButton key={provider} provider={provider} fullWidth /> ))} </div> )}Demo
Loading…
"use client"import { GoogleAuthButton, GitHubAuthButton, SocialAuthButton,} from "@saasflare/ui"/** * Provider-branded auth buttons: the default "Continue with {Provider}" label, * a pending button via `loading`, and the brand-locked `colorful` icon weight. */export function Demo() { return ( <div className="flex w-full max-w-xs flex-col gap-3"> <GoogleAuthButton fullWidth /> <GitHubAuthButton fullWidth /> <SocialAuthButton provider="github" iconWeight="colorful" loading loadingText="Connecting…" fullWidth /> </div> )}API Reference
SocialAuthButton
Prop
Type
GoogleAuthButton
Prop
Type
GitHubAuthButton
Prop
Type
AppleAuthButton
Prop
Type
MicrosoftAuthButton
Prop
Type
XAuthButton
Prop
Type
DiscordAuthButton
Prop
Type
FacebookAuthButton
Prop
Type
LinkedInAuthButton
Prop
Type
MediumAuthButton
Prop
Type
SlackAuthButton
Prop
Type
RedditAuthButton
Prop
Type
PayPalAuthButton
Prop
Type
StripeAuthButton
Prop
Type
GitLabAuthButton
Prop
Type
DribbbleAuthButton
Prop
Type
TikTokAuthButton
Prop
Type
Logo
Saasflare brand mark + wordmark with six size presets (icon hides the wordmark) and an interactive mode that wraps the mark in a next/link with hover affordance.
Theme Mode Multi Toggle
Three-segment light / dark / system segmented control (Sun / Moon / Monitor) built on ToggleGroup, with icon, icon-inherit, and button appearances.