Auth Buttons

A component for displaying auth buttons

Loading...
npx shadcn@latest add https://ui.sikka.io/r/auth-buttons.json
npx shadcn@latest add https://ui.sikka.io/r/auth-buttons.json
pnpm dlx shadcn@latest add https://ui.sikka.io/r/auth-buttons.json
bunx --bun shadcn@latest add https://ui.sikka.io/r/auth-buttons.json

Usage

import { AuthButtons } from "@/components/naseem-ui/blocks/auth/auth-buttons";

Props

PropTypeDefaultDescription
viaApplebooleanfalseWhether to show the Apple button
viaGooglebooleanfalseWhether to show the Google button
viaMicrosoftbooleanfalseWhether to show the Microsoft button
viaTwitterbooleanfalseWhether to show the Twitter button
viaGithubbooleanfalseWhether to show the Github button
viaEmailbooleanfalseWhether to show the Email button
viaPhonebooleanfalseWhether to show the Phone button
isAppleLoadingbooleanfalseWhether to show the loading state for the Apple button
isGoogleLoadingbooleanfalseWhether to show the loading state for the Google button
isMicrosoftLoadingbooleanfalseWhether to show the loading state for the Microsoft button
isTwitterLoadingbooleanfalseWhether to show the loading state for the Twitter button
isGithubLoadingbooleanfalseWhether to show the loading state for the Github button
isEmailLoadingbooleanfalseWhether to show the loading state for the Email button
isPhoneLoadingbooleanfalseWhether to show the loading state for the Phone button
isNafathLoadingbooleanfalseWhether to show the loading state for the Nafath button
isMetamaskLoadingbooleanfalseWhether to show the loading state for the Metamask button
handleApple() => voidundefinedThe function to handle the Apple button click
handleGoogle() => voidundefinedThe function to handle the Google button click
handleMicrosoft() => voidundefinedThe function to handle the Microsoft button click
handleTwitter() => voidundefinedThe function to handle the Twitter button click
handleGithub() => voidundefinedThe function to handle the Github button click
handleEmail() => voidundefinedThe function to handle the Email button click
handlePhone() => voidundefinedThe function to handle the Phone button click
handleNafath() => voidundefinedThe function to handle the Nafath button click
handleMetamask() => voidundefinedThe function to handle the Metamask button click
texts{ continueWithMetamask?: string; continueWithNafath?: string; continueWithGoogle?: string; continueWithGithub?: string; continueWithTwitter?: string; continueWithApple?: string; continueWithMicrosoft?: string; continueWithEmail?: string; continueWithPhone?: string; }undefinedThe texts to display for the buttons
themeMode`"dark""light"`"light"
classNamestringundefinedThe className to use for the buttons
classNames{ container?: string; button?: string; }undefinedThe classNames to use for the buttons
size`"sm""md""lg"`

On this page