Free and open-source React social button components built for modern applications and websites. These social buttons are built using React Aria and styled with Tailwind CSS.
Installation
You can add this social button component using our CLI or manually:
npx untitledui@latest add social-button
Social button examples
Below are examples and variations of this social button component:
Social button group examples
Below are examples and variations of this social button group component:
API reference
FAQs
Please refer to our frequently asked questions page for more.
Set the social prop to "google", "facebook", "apple", "twitter", "figma" or "dribble". Note that the Dribbble button uses the spelling "dribble".
The default "brand" theme uses each platform's colors: blue for Facebook, pink for Dribbble, black for Apple, Twitter and Figma, and a neutral button for Google. "color" uses a neutral button with the colored logo (Apple and Twitter stay black), and "gray" uses a neutral button with a gray logo.
Social buttons support "md" and "lg" through the size prop. The default is "lg".
Leave out the children. The button switches to square padding and shows only the logo. Add an aria-label such as aria-label="Sign in with Google", since there is no visible text.
No, they only render the button. Handle the click with onPress and call your auth provider there, or pass href to render the button as a link to your sign-in URL.
Set isDisabled to true. The older disabled prop still works but is deprecated. When the button renders as a link, disabling it also removes the href.
Social buttons example