Component
Social Button Facebook
Facebook sign-in buttons
- Component
- Tailwind
- MIT
Preview
Live component
9:41 100%
devsnips.dev/library/tailwind/components/buttons/social-button/facebook/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Components/Buttons/social-button/facebook Tailwind/Components/Buttons/social-button/facebook <!-- Facebook Social Button - Filled -->
<button class="flex items-center justify-center gap-3 px-6 py-3 bg-[#1877F2] text-white font-medium rounded-lg hover:bg-[#166FE5] focus:outline-none focus:ring-2 focus:ring-blue-400 transition-colors">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
<path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>
</svg>
Continue with Facebook
</button>
<!-- Facebook Social Button - Outline -->
<button class="flex items-center justify-center gap-3 px-6 py-3 bg-white border border-gray-300 text-gray-700 font-medium rounded-lg hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-gray-400 transition-colors">
<svg class="w-5 h-5 text-[#1877F2]" fill="currentColor" viewBox="0 0 24 24">
<path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>
</svg>
Sign in with Facebook
</button> # Social Button Facebook
Facebook-branded social button.
## Preview
Open `preview.html` for a standalone demonstration.
## Features
- Brand color treatment
- Icon + label layout
- Focus-visible states
## Usage
```bash
npx devsnips add Tailwind/Components/Buttons/social-button/facebook
```
Copy from `code.html`.
## Customization
- Brand colors (respect brand guidelines), icon, padding
## Accessibility
- Native `<button>` or link with clear accessible name
## Dependencies
- Tailwind CSS only
## File Structure
- `code.html` · `preview.html` · `metadata.json` · `README.md` 15 lines UTF-8 · LF · Spaces: 2
Continue browsing