组件 用户提及 用户提及组件

用户提及组件

用户提及组件,采用透明玻璃风格,具有响应式设计和暗黑模式支持。

预览

HTML 代码

<div class="flex items-center p-4 bg-white bg-opacity-20 backdrop-filter backdrop-blur-lg rounded-lg shadow-lg dark:bg-gray-800 dark:bg-opacity-20 transition-all duration-300 ease-in-out">
  <img class="w-10 h-10 rounded-full mr-4" src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar">
  <div class="flex-grow">
    <p class="text-white font-semibold text-lg dark:text-white">John Doe</p>
    <p class="text-gray-200 text-sm dark:text-gray-300">@johndoe</p>
  </div>
  <button class="px-3 py-1 bg-blue-500 text-white text-sm rounded hover:bg-blue-600 transition duration-300 ease-in-out dark:bg-blue-700 dark:hover:bg-blue-800">
    Follow
  </button>
</div>

相关组件

用户提及组件

一个使用Tailwind CSS的用户提及组件,具有3D设计、响应效果和暗主题支持。

打开

用户提及组件

一个响应式用户提及组件,支持黑暗主题,使用 Tailwind CSS。不需要 JavaScript,仅需 HTML 和 Tailwind 类。对于暗模式,请使用 Tailwind 的 dark: 前缀进行样式设置。图片来自 picsum.photos,头像来自 randomuser.me。

打开

User Mentions 组件

响应式 User Mentions 组件,采用 Retro/Vintage 风格和类似的配色方案设计,支持深色模式。它具有适用于社交媒体界面的用户头像、名称和消息文本。

打开