组件 徽章 徽章组件

徽章组件

徽章组件 - 极简/扁平设计,具有响应式效果和黑暗主题支持。无 JavaScript,纯 HTML 和 CSS,使用 Tailwind。

预览

HTML 代码

<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200"> Badge </span>
<span class="inline-flex items-center px-3 py-0.5 rounded-full text-sm font-medium bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200"> Large Badge </span>
<span class="inline-flex items-center px-2.5 py-0.5 rounded-md text-sm font-medium bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200"> Rounded Badge </span>
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200">
  <svg class="-ml-0.5 mr-1.5 h-2 w-2 text-yellow-400" fill="currentColor" viewBox="0 0 8 8">
    <circle cx="4" cy="4" r="3" />
  </svg>
  Dot Badge
</span>
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-pink-100 text-pink-800 dark:bg-pink-900 dark:text-pink-200">
  <svg class="-ml-0.5 mr-1.5 h-2 w-2 text-pink-400" fill="currentColor" viewBox="0 0 8 8">
    <circle cx="4" cy="4" r="3" />
  </svg>
  Dot Badge with long text that should wrap or truncate
</span>

相关组件

徽章组件

具有响应式黑暗主题支持的徽章组件,适用于电子商务。

打开

徽章组件

一个多功能徽章组件,专为商业/企业网站设计,在暗模式用户界面中使用大地色调以增强用户体验。该组件具有响应性,并带有一些互动元素。

打开

Healthcare_Badges_Component_Bauhaus

一个以医疗保健为主题的徽章组件,采用包豪斯风格的设计,使用日落/暖色调。它具有几何形式和功能布局,适用于在医疗应用中显示状态或类别。响应式,支持深色模式。

打开