ClerkSocialButton

fun ClerkSocialButton(provider: OAuthProvider, modifier: Modifier = Modifier, isEnabled: Boolean = true, forceIconOnly: Boolean = false, onClick: (OAuthProvider) -> Unit = {}, clerkTheme: ClerkTheme? = null, expandIconWidth: Boolean = false)

A composable button for social authentication with a specific OAuthProvider.

This button adaptively displays either the provider's logo with "Sign in with provider name" text when there's sufficient space (>180dp width), or just the logo when space is constrained. The button always maintains a minimum width of 120dp for consistent sizing.

Parameters

provider

The OAuthProvider to display and use for authentication.

modifier

Optional Modifier for theming and styling.

isEnabled

Controls the enabled state of the button. When false, this button will not be clickable.

onClick

Lambda to be invoked when the button is clicked, passing the selected OAuthProvider.