Default
Show the codeHide the code
Default, code
<SocialSignIn providers={[{ provider: 'google' }, { provider: 'microsoft' }, { provider: 'email' }]} />Sign-in providers stacked at equal size before the password option, each with the vendor's own mark and wording.
Still previews of the real component, rendered from its stories. Pro code isn’t public, so nothing in them responds. Switch the theme and density for every preview at once.
Default, code
<SocialSignIn providers={[{ provider: 'google' }, { provider: 'microsoft' }, { provider: 'email' }]} />With Apple (placeholder), code
<SocialSignIn providers={[{ provider: 'apple' }, { provider: 'google' }, { provider: 'phone' }]} />Loading, code
<SocialSignIn providers={[{ provider: 'google', isLoading: true }, { provider: 'microsoft' }, { provider: 'email' }]} />The 5 design tokens SocialSignIn reads, with the value each has in the theme and density chosen above. Change a token and the component follows, in Figma and in code.
| Token | Value now | CSS variable |
|---|---|---|
| color.border.strong | … | --sd-color-border-strong |
| radius.sm | … | --sd-radius-sm |
| spacing.gap.sm | … | --sd-spacing-gap-sm |
| spacing.inset.md | … | --sd-spacing-inset-md |
| target.min | … | --sd-target-min |
Pro components come as source from the SuperDuper registry, with a licence key from Solo, Team or Studio. The registry and checkout aren’t open yet.
Add it from the registry (Pro licence key)
npx shadcn@latest add @superduperui/social-sign-inThen import it
import { SocialSignIn } from "@/components/ui/social-sign-in"| Prop | Type | What it does |
|---|---|---|
providersrequired | SocialProvider[] | The providers, top to bottom, all the same size (equal prominence). |
onSignIn | (provider: SocialProviderName) => void | Called with the provider pressed. |
aria-label | stringDefault 'Sign in options' | Names the group. Default "Sign in options". |
className | string |
Screen readers announce "Sign in options, group. Continue with Google, button. Sign in with Microsoft, button".
WCAG 2.2 AAA criteria the component meets in Comfortable density: 1.4.6, 1.4.9, 2.1.3, 2.3.2, 2.4.13, 2.5.5.
Buttons stay 48px tall in both densities.
| axe-core (WCAG A, AA, AAA and best practice) | 80 runs across every story, theme, density and width: 0 violations |
|---|---|
| Rendered text contrast | 130 text runs: 0 below 7:1, lowest 16.71:1 |
| Target size | 44 targets: 0 under 44px in Comfortable |
| Focus appearance (2.4.13) | 54 focus stops in 3 browser engines: all pass |
| Keyboard script | Chromium 3 of 3, Firefox 3 of 3, WebKit 3 of 3 |
Manual passes with VoiceOver and NVDA haven’t been done yet.
Each step is scripted and run in Chromium, Firefox and WebKit.
| Key | What happens |
|---|---|
| Tab | Tab moves to the first provider |
| Tab | Tab moves to the next provider, in order |
| Shift+Tab | Shift+Tab moves back |
The Figma component is SocialSignIn. The Figma library isn’t published yet.
Figma to code: Stack → providers; nested Provider → providers.