Social Buttons
ReadyOAuth sign-in buttons.
Installation
$ npx @oratiq-js/ui add social-buttonsCopies the component and everything it depends on into your project, then lists the npm packages to install. The code is yours after this.
Usage
import
import { SocialButton, SocialButtons } from "@/components/ui/social-buttons";Single and icon-only
Accessibility
- Brand marks are inline SVG — no icon-library dependency, and never mirrored under RTL: a logo is not a directional glyph.
- Icon-only buttons carry the full accessible label ('Continue with Google'), not the brand name alone.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
provider* | "google" | "apple" | "github" | "facebook" | — | Which provider. |
action | string | "Continue with" | Leading copy. |
iconOnly | boolean | false | Logo-only, label moves to aria-label. |
View source on GitHub → components/ui/social-buttons.tsx