Social Login Button

PreviousNext

A social login button component

Docs
shadcnui-blockscomponent

Preview

Loading preview…
components/customized/button/button-12.tsx
import { Button } from "@/registry/ui/button";

const SocialLoginButtonDemo = () => {
  return (
    <div className="flex flex-col gap-2 max-w-60 w-full">
      <Button variant="outline">
        <svg
          stroke="currentColor"
          fill="currentColor"
          strokeWidth="0"
          viewBox="0 0 488 512"
          height="1em"
          width="1em"
          xmlns="http://www.w3.org/2000/svg"
          className="h-5 w-5"
        >
          <path d="M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"></path>
        </svg>
        Sign up with Google
      </Button>
      <Button variant="outline">
        <svg
          stroke="currentColor"
          fill="currentColor"
          strokeWidth="0"
          viewBox="0 0 512 512"
          height="1em"
          width="1em"
          xmlns="http://www.w3.org/2000/svg"
        >
          <path d="M391.17,103.47H352.54v109.7h38.63ZM285,103H246.37V212.75H285ZM120.83,0,24.31,91.42V420.58H140.14V512l96.53-91.42h77.25L487.69,256V0ZM449.07,237.75l-77.22,73.12H294.61l-67.6,64v-64H140.14V36.58H449.07Z"></path>
        </svg>
        Sign up with Twitch
      </Button>
      <Button variant="outline">
        <svg
          stroke="currentColor"
          fill="currentColor"
          strokeWidth="0"
          viewBox="0 0 512 512"
          height="1em"
          width="1em"
          xmlns="http://www.w3.org/2000/svg"
        >
          <path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"></path>
        </svg>
        Sign up with Twitter
      </Button>
    </div>
  );
};

export default SocialLoginButtonDemo;

Installation

npx shadcn@latest add @shadcnui-blocks/button-12

Usage

import { Button12 } from "@/components/button-12"
<Button12 />