Skip to main content

MultinaireSocialLoginButton

OAuth/social login buttons with customizable styling.

Basic Usage

import { MultinaireSocialLoginButton } from '@multinaire/multinaire-design';

<MultinaireSocialLoginButton
title="Continue with Google"
icon="Google"
onPress={() => signInWithGoogle()}
/>

Props

PropTypeDefaultDescription
titlestring-Button label text
iconMultinaireIcons-Social provider icon
iconColorColorKeys-Icon color override
titleColorstring-Text color override
backgroundColorstring-Background color override
flexnumber-Flex value
widthDimensionValue-Button width
heightDimensionValue-Button height
marginSpacingProps-Margin spacing
isLoadingbooleanfalseShow loading state
onPress() => void-Press handler

Examples

Google Sign-In

<MultinaireSocialLoginButton
title="Continue with Google"
icon="Google"
backgroundColor="#ffffff"
titleColor="#000000"
onPress={() => signInWithGoogle()}
/>

Apple Sign-In

<MultinaireSocialLoginButton
title="Continue with Apple"
icon="Apple"
backgroundColor="#000000"
titleColor="#ffffff"
onPress={() => signInWithApple()}
/>

Facebook Sign-In

<MultinaireSocialLoginButton
title="Continue with Facebook"
icon="Facebook"
backgroundColor="#1877F2"
titleColor="#ffffff"
onPress={() => signInWithFacebook()}
/>

Full Width Login Options

<MultinaireContainer gap={12}>
<MultinaireSocialLoginButton
width="100%"
title="Continue with Google"
icon="Google"
onPress={() => signInWithGoogle()}
/>
<MultinaireSocialLoginButton
width="100%"
title="Continue with Apple"
icon="Apple"
backgroundColor="#000000"
titleColor="#ffffff"
onPress={() => signInWithApple()}
/>
</MultinaireContainer>