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

用户提及组件

一个为深色模式设计的响应式用户提及组件,支持 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>

相关组件

User Mentions 组件

一个简单的 User Mentions 组件,采用粗野主义风格设计,具有灰度配色方案,适用于商业和企业网站。它包括带有头像的用户提及,并且响应深色主题支持。

打开

用户提及组件

一个拟物化的用户提及组件,旨在模仿现实世界的元素,具有响应效果和暗主题支持,使用Tailwind CSS。

打开

用户提及组件

一个复杂的用户提及组件,设计用于仪表板,支持暗模式和三元色彩方案。

打开