组件 错误消息 错误消息组件

错误消息组件

一种使用Tailwind CSS设计的简约错误消息组件,特色是响应式效果和黑暗主题支持。

预览

HTML 代码

<div class="max-w-md mx-auto mt-8 p-4 bg-white shadow-md rounded-lg dark:bg-gray-800">
    <div class="flex items-center mb-4">
        <img src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar" class="w-12 h-12 rounded-full">
        <h2 class="ml-3 text-xl font-semibold text-gray-900 dark:text-white">Error Title</h2>
    </div>
    <p class="text-gray-700 dark:text-gray-300">This is an error message that summarizes the issue. Please check the details and try again.</p>
    <div class="mt-4">
        <img src="https://picsum.photos/400/200" alt="Error Illustration" class="w-full h-auto rounded-md">
    </div>
    <div class="mt-4 flex justify-between">
        <button class="px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600 dark:bg-blue-700 dark:hover:bg-blue-600">
            Retry
        </button>
        <button class="px-4 py-2 bg-red-500 text-white rounded-md hover:bg-red-600 dark:bg-red-600 dark:hover:bg-red-700">
            Dismiss
        </button>
    </div>
</div>

相关组件

错误消息组件

一个具有拟物化设计的错误消息组件,具有逼真的警告图标和阴影边框。它支持响应式布局,并包含不同的暗黑模式样式,确保在不同主题下的可读性和视觉适宜性。

打开

错误信息组件

一个采用野兽派风格、使用 Tailwind CSS 设计的响应式错误消息组件,具有高对比、独特布局和暗模式支持。

打开

错误消息组件

使用 Material Design 原则的响应式错误消息组件,具有三元配色方案和深色模式支持,专为产品组合量身定制。

打开