Social Button
A sign-in button carrying the provider logo and a sensible default label. Google, GitHub and Apple are built in; any other provider works by passing your own icon. It wraps Button, so every Button prop - size, fullWidth, disabled, loading - passes straight through.
Installation
npx stepwise-ui add social-button
Installs button alongside it, since this is built on top of it.
Providers
The label defaults to “Continue with {Provider}”. Override label to say “Sign in with” or “Sign up with” instead - the wording should match what the button actually does.
Custom provider
Pass any string as provider along with your own icon and label. Both are required for an unknown provider, because there is no built-in name to build the sentence from.
Props
PropTypeDescription
provider'google' | 'github' | 'apple' | stringBuilt-in provider, or any other string for a custom one.
iconReactNodeThe logo. Required when provider is not built in.
labelstringButton text. Defaults to "Continue with {Provider}". Required for a custom provider.
size'sm' | 'default' | 'lg'Button's size scale. Default 'default'.
fullWidthbooleanStretches to the width of its container.
hrefstringRenders an <a> instead of a <button> - handy for an OAuth authorize URL.