组件 Follow 按钮 Follow Button 组件

Follow Button 组件

一个简单、响应迅速的关注按钮组件,专为约会/社交平台设计,具有柔和的配色方案和深色模式支持。

预览

HTML 代码

<div class="flex items-center justify-center p-4 bg-gray-100 dark:bg-gray-900 min-h-screen">
  <button class="follow-button flex items-center justify-center px-6 py-3 rounded-full text-lg font-semibold transition-all duration-300 ease-in-out
    bg-gradient-to-r from-purple-200 to-pink-200 text-purple-800 dark:from-purple-800 dark:to-pink-800 dark:text-white
    hover:from-purple-300 hover:to-pink-300 hover:text-purple-900 dark:hover:from-purple-700 dark:hover:to-pink-700 dark:hover:text-white
    focus:outline-none focus:ring-4 focus:ring-purple-300 dark:focus:ring-purple-700
    shadow-lg hover:shadow-xl">
    <svg class="h-5 w-5 mr-2 -ml-1 text-purple-700 dark:text-purple-300" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
      <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM8 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0z"></path>
    </svg>
    Follow
  </button>
</div>

相关组件

Follow Button 组件

一个复杂的“关注”按钮组件,具有微交互、棕褐色/棕色配色方案、响应式设计和深色模式支持,适用于博客/内容平台。

打开

Follow Button 组件

一个复杂的响应式“跟随”按钮组件,具有渐变和柔和的颜色过渡,专为房地产平台设计。包括深色模式支持并使用语义 HTML。

打开

跟随按钮

黑暗模式 UI 关注按钮组件,具有响应式效果和黑暗主题支持。

打开