Skip to main content

SocialButton

Pre-styled buttons for social login providers (Google, Apple, etc).

Import​

import { SocialButton } from '@scaffald/ui';

Basic Usage​

Live Preview
<ThemeProvider initialTheme="light">
<Stack gap={12} style={{maxWidth: 350}}>
  <SocialButton brand="google">Continue with Google</SocialButton>
  <SocialButton brand="apple">Continue with Apple</SocialButton>
</Stack>
</ThemeProvider>

Props​

See the TypeScript definitions for the complete props API.

Common Props​

  • brand - Social provider brand
  • children - Button label text

Accessibility​

  • Keyboard navigation support
  • Screen reader compatible

Changelog​

See GitHub Releases for version history.