组件 社交分享按钮 社交分享按钮组件

社交分享按钮组件

一个使用 Tailwind CSS 设计的极简社交分享按钮组件,具有响应式布局和深色主题支持。该组件包括用于在流行社交媒体平台上分享的按钮,采用干净简单的设计元素。

预览

HTML 代码

<div class="flex flex-col md:flex-row justify-center items-center space-x-4 p-4 bg-white dark:bg-gray-800 rounded-lg shadow">
    <div class="flex items-center space-x-2">
        <img src="https://picsum.photos/30" alt="Avatar" class="w-8 h-8 rounded-full" />
        <span class="text-gray-800 dark:text-gray-200">Share with:</span>
    </div>
    <a href="#" class="flex items-center justify-center w-10 h-10 rounded-full bg-blue-500 hover:bg-blue-600 text-white transition duration-200 ease-in-out">
        <img src="https://img.icons8.com/ios-filled/50/ffffff/facebook-new.png" alt="Facebook" class="w-6 h-6" />
    </a>
    <a href="#" class="flex items-center justify-center w-10 h-10 rounded-full bg-blue-400 hover:bg-blue-500 text-white transition duration-200 ease-in-out">
        <img src="https://img.icons8.com/ios-filled/50/ffffff/twitter-squared.png" alt="Twitter" class="w-6 h-6" />
    </a>
    <a href="#" class="flex items-center justify-center w-10 h-10 rounded-full bg-red-500 hover:bg-red-600 text-white transition duration-200 ease-in-out">
        <img src="https://img.icons8.com/ios-filled/50/ffffff/instagram-new.png" alt="Instagram" class="w-6 h-6" />
    </a>
    <a href="#" class="flex items-center justify-center w-10 h-10 rounded-full bg-gray-800 hover:bg-gray-600 text-white transition duration-200 ease-in-out">
        <img src="https://img.icons8.com/ios-filled/50/ffffff/linkedin.png" alt="LinkedIn" class="w-6 h-6" />
    </a>
</div>

相关组件

Social Share Buttons 组件

具有单色配色方案的 retro/vintage social share buttons 组件。它是一个复杂的响应式设计,支持深色主题,适用于投资组合。使用不带 JavaScript 的 Tailwind CSS。

打开

Social Share Buttons 组件

一组社交媒体共享按钮,采用等宽/开发人员美学、企业蓝色配色方案和完全响应能力设计。包括深色模式支持。

打开

Social Share Buttons 组件

一个干净、简约的社交分享组件,适用于金融/银行界面,具有黑色、白色和强调色,具有完全响应能力和深色模式支持。

打开