Clerk OAuth Buttons
elements/clerk-oauth-buttonsFreeBlock
Social login button group with Google, GitHub, Apple, and Microsoft. Supports default, outline, and icon-only variants with horizontal/vertical layouts.
Install it
npx shadcn@latest add https://www.tryelements.dev/r/clerk-oauth-buttons.jsonSource
1"use client";23import type * as React from "react";4import { useState } from "react";56import { useClerk, useSignIn } from "@clerk/nextjs";78function cn(...classes: (string | boolean | undefined)[]) {9 return classes.filter(Boolean).join(" ");10}1112function LoaderIcon({ className }: { className?: string }) {13 return (14 <svg15 aria-hidden="true"16 className={cn("animate-spin", className)}17 xmlns="http://www.w3.org/2000/svg"18 width="16"19 height="16"20 viewBox="0 0 24 24"21 fill="none"22 stroke="currentColor"23 strokeWidth="2"24 strokeLinecap="round"25 strokeLinejoin="round"26 >27 <path d="M21 12a9 9 0 1 1-6.219-8.56" />28 </svg>29 );30}3132function GoogleLogo({ className }: { className?: string }) {33 return (34 <svg35 aria-hidden="true"36 xmlns="http://www.w3.org/2000/svg"37 viewBox="0 0 24 24"38 className={className}39 >40 <path41 d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z"42 fill="#4285F4"43 />44 <path45 d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"46 fill="#34A853"47 />48 <path49 d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"50 fill="#FBBC05"51 />52 <path53 d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"54 fill="#EA4335"55 />56 </svg>57 );58}5960function GitHubLogo({ className }: { className?: string }) {61 return (62 <svg63 aria-hidden="true"64 xmlns="http://www.w3.org/2000/svg"65 viewBox="0 0 24 24"66 fill="currentColor"67 className={className}68 >69// … truncated
What it pulls in
npm packages
Files it writes
More from elements
All 359 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Agentic Codingagentic-coding | elements | Blocks | Free | no deps | |
| AgentMail Logoagentmail-logo | elements | Blocks | Free | no deps | |
| AI Badgeai-badge | elements | Blocks | Free | 2 deps · 2 files | |
| AI Servicesai-services | elements | Blocks | Free | no deps | |
| Astro Logoastro-logo | elements | Blocks | Free | no deps | |
| AWS All Servicesaws-all | elements | Blocks | Free | no deps | |
| AWS Analyticsaws-analytics | elements | Blocks | Free | no deps | |
| AWS Computeaws-compute | elements | Blocks | Free | no deps |
