Frosted glass pills with a light streak that follows the pointer and a blurred orb of the provider color glowing from behind. While connecting, the orb sweeps back and forth and a ring spins around the glyph.
npx shadcn@latest add https://hyperblur.dev/r/social-login-glass.jsonWorks in any React project set up with the shadcn CLI. The file lands in components/hyperblur/social-login-glass.tsx.
import { SocialLoginGlass } from "@/components/hyperblur/social-login-glass"
<SocialLoginGlass providers={["apple", "google"]} backdrop={false} />| Prop | Type | Default | Description |
|---|---|---|---|
| providers | Array<SocialProviderId | { id: string; label?: string; icon?: ReactNode; color?: string; bg?: string; fg?: string }> | ["apple", "google", "discord"] | Providers in display order. Built-in ids: google, github, apple, x, linkedin, discord, facebook, microsoft, slack, spotify, twitch, figma, email, link. Pass an object to set a custom label, icon or colors, or to add any other provider. |
| labelPrefix | string | "Continue with" | Text placed before the provider name and used in the accessible name. |
| backdrop | boolean | true | Draws a framed panel with slow color blobs behind the pills. Turn it off to place the glass over your own background. |
| onSelect | (provider: string) => void | Promise<unknown> | Called with the provider id. Return a promise to keep the loading state until it settles. | |
| pendingDuration | number | 1400 | How long the loading state lasts in milliseconds when onSelect does not return a promise. |
| disabled | boolean | false | Disables every button. |