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

用户提及组件

一个为深色模式设计的响应式用户提及组件,支持 Tailwind CSS。

预览

HTML 代码

<div class="bg-gray-900 text-white p-4 rounded-lg shadow-lg">
    <h2 class="text-lg font-semibold mb-2">Mentions</h2>
    <div class="flex items-center space-x-3 mb-4">
        <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="User Avatar" class="w-10 h-10 rounded-full">
        <div class="flex-1">
            <p class="font-medium">John Doe</p>
            <p class="text-gray-400 text-sm">@johndoe</p>
        </div>
    </div>
    <div class="flex items-center space-x-3 mb-4">
        <img src="https://randomuser.me/api/portraits/women/2.jpg" alt="User Avatar" class="w-10 h-10 rounded-full">
        <div class="flex-1">
            <p class="font-medium">Jane Smith</p>
            <p class="text-gray-400 text-sm">@janesmith</p>
        </div>
    </div>
    <div class="flex items-center space-x-3 mb-4">
        <img src="https://randomuser.me/api/portraits/men/3.jpg" alt="User Avatar" class="w-10 h-10 rounded-full">
        <div class="flex-1">
            <p class="font-medium">Mike Johnson</p>
            <p class="text-gray-400 text-sm">@mikejohnson</p>
        </div>
    </div>
    <a href="#" class="text-blue-400 hover:underline">View more mentions</a>
</div>
<style>
    /* Dark mode styles */
    @media (prefers-color-scheme: dark) {
        body {
            background-color: #1a1a1a;
        }
    }
</style>

相关组件

用户提及组件

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

打开

User Mentions 组件

一个复杂的用户提到了 CRM/业务工具的组件,具有紫色/紫色渐变配色方案和平滑过渡。完全响应,支持深色模式。

打开

用户提及组件

响应式 User Mentions 组件,具有 Glassmorphism 设计、类似配色方案和深色主题支持。

打开