svelte-social-login-buttons Svelte Themes

Svelte Social Login Buttons

Svelte component library for Google, GitHub, and X sign in.

Svelte Social Login Buttons

Drop-in sign-in buttons for Svelte 5. To see an example visit the documentation website here: https://connor56.github.io/svelte-social-login-buttons/

image

Install

npm install svelte-social-login-buttons

Usage

<script lang="ts">
  import { GoogleSignInButton } from 'svelte-social-login-buttons';

  async function signIn() {
    // Your auth flow here
  }
</script>

<GoogleSignInButton signInFunction={signIn} />

Components

  • GoogleSignInButton
  • GitHubSignInButton
  • XSignInButton

Props

  • signInFunction — async callback invoked on click.

Notes

  • Works with Svelte 5 (runes).

License

MIT

Top categories

Loading Svelte Themes