组件 点赞/反应按钮 喜欢/反应按钮组件

喜欢/反应按钮组件

一个玻璃拟态风格的点赞/反应按钮组件,具有响应效果和使用 Tailwind CSS 支持暗模式。

预览

HTML 代码

<div class="flex justify-center items-center space-x-4 p-6 bg-white bg-opacity-10 backdrop-blur-lg rounded-lg shadow-lg dark:bg-gray-800 dark:bg-opacity-30">
    <div class="flex items-center space-x-2">
        <img class="w-8 h-8 rounded-full" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar">
        <span class="text-lg text-gray-900 dark:text-white">Like</span>
    </div>
    <button class="flex items-center p-2 text-white bg-blue-500 rounded-full transition duration-300 ease-in-out hover:bg-blue-600 focus:outline-none">
        <span class="material-icons"> thumb_up </span>
    </button>
    <button class="flex items-center p-2 text-white bg-red-500 rounded-full transition duration-300 ease-in-out hover:bg-red-600 focus:outline-none">
        <span class="material-icons"> favorite </span>
    </button>
    <button class="flex items-center p-2 text-white bg-yellow-500 rounded-full transition duration-300 ease-in-out hover:bg-yellow-600 focus:outline-none">
        <span class="material-icons"> sentiment_satisfied </span>
    </button>
</div>

<style>
    /* Add Material Icons font link */
    @import url('https://fonts.googleapis.com/icon?family=Material+Icons');
</style>

相关组件

喜欢/反应按钮组件

一个复古/年代风格的点赞/反应按钮组件,特色是一系列用于反应的互动按钮,支持深色主题和响应式设计。该组件适合用于仪表盘,使用户能对界面中的各种元素进行反应。

打开

点赞/反应按钮组件

一个以极简主义风格设计的点赞/反应按钮组件,使用Tailwind CSS,具有响应式效果和深色主题支持。

打开

拟物化 Like/Reaction Buttons 组件

一个复杂、响应迅速、支持深色主题的拟物化 Like/Reaction Buttons 组件,使用单色配色方案进行电子商务。

打开