コンポーネント バッジ バッジコンポーネント

バッジコンポーネント

バッジコンポーネント - レスポンシブエフェクトとダークテーマのサポートを備えたミニマリスト/フラットデザイン。JavaScriptは不要で、Tailwindを使用した純粋なHTMLとCSSです。

プレビュー

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>

関連コンポーネント

バッジコンポーネント

マイクロインタラクションで設計されたレスポンシブバッジコンポーネントで、補色の配色とダークテーマのサポートが特徴です。ビジネスや企業のWebサイトに最適なこのコンポーネントには、ユーザーのアクションに応答する魅力的なアニメーションが含まれています。ホバー効果などの前述の視覚的な手がかりは、ユーザーエクスペリエンスを向上させます。

開ける

バッジコンポーネント

ブログ/コンテンツ Web サイト用の類似の配色を持つニューモーフィック バッジ コンポーネント。レスポンシブデザインとダークテーマのサポートを特徴とし、HTMLとTailwind CSSのみを使用します。

開ける

バッジコンポーネント

類似の配色と豊富なインターフェイスを備えたブログ用のNeumorphismスタイルのバッジコンポーネント。

開ける