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

用户提及组件

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

预览

HTML 代码

<div class="bg-gray-800 dark:bg-gray-900 text-white p-6 rounded-lg shadow-lg">
    <h2 class="text-2xl font-semibold mb-4">User Mentions</h2>
    <div class="overflow-x-auto">
        <table class="min-w-full divide-y divide-gray-700">
            <thead class="bg-gray-700">
                <tr>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Avatar</th>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Username</th>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Mentioned At</th>
                    <th class="px-6 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Actions</th>
                </tr>
            </thead>
            <tbody class="bg-gray-800 divide-y divide-gray-700">
                <tr>
                    <td class="px-6 py-4 whitespace-nowrap">
                        <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt="User Avatar">
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap text-sm text-white">@johndoe</td>
                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">2 hours ago</td>
                    <td class="px-6 py-4 whitespace-nowrap text-sm">
                        <button class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded">View</button>
                    </td>
                </tr>
                <tr>
                    <td class="px-6 py-4 whitespace-nowrap">
                        <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="User Avatar">
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap text-sm text-white">@janedoe</td>
                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">3 hours ago</td>
                    <td class="px-6 py-4 whitespace-nowrap text-sm">
                        <button class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded">View</button>
                    </td>
                </tr>
                <tr>
                    <td class="px-6 py-4 whitespace-nowrap">
                        <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/52.jpg" alt="User Avatar">
                    </td>
                    <td class="px-6 py-4 whitespace-nowrap text-sm text-white">@alexsmith</td>
                    <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-400">5 hours ago</td>
                    <td class="px-6 py-4 whitespace-nowrap text-sm">
                        <button class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded">View</button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>

相关组件

用户提及组件

一个简单、响应迅速的用户提到了具有拟物化设计、类似配色方案和深色模式支持的组件。

打开

用户提及组件

一个用户提及组件,采用玻璃质感风格,具有磨砂玻璃般的半透明元素和模糊效果。它支持暗主题,并且响应式,适合电子商务网站。

打开

用户提及组件

一个使用 Tailwind CSS 的用户提及组件,具有玻璃外观设计、响应式和深色主题支持。

打开