コンポーネント ページネーション Eコマースのページネーション

Eコマースのページネーション

レスポンシブマテリアルデザインにインスパイアされたページネーションコンポーネントで、ダークテーマをサポートし、eコマース製品のリストに適しています。補完的な配色と適度な複雑さを実装し、HTML と Tailwind CSS のみを使用した対話型のボタン状態を実現します。

プレビュー

HTMLコード

<nav aria-label="Pagination" class="flex justify-center items-center space-x-2 my-4 dark:bg-gray-800 p-2 rounded-md">
  <button class="px-3 py-2 text-sm font-medium text-gray-700 bg-gray-200 rounded-md hover:bg-gray-300 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-600">
    Previous
  </button>
  <a href="#" class="px-3 py-2 text-sm font-medium text-gray-700 bg-blue-200 rounded-md hover:bg-blue-300 dark:bg-blue-700 dark:text-blue-200 dark:hover:bg-blue-600">
    1
  </a>
  <a href="#" class="px-3 py-2 text-sm font-medium text-gray-700 bg-gray-200 rounded-md hover:bg-gray-300 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-600">
    2
  </a>
  <a href="#" aria-current="page" class="px-3 py-2 text-sm font-medium text-white bg-blue-500 rounded-md dark:bg-blue-500">
    3
  </a>
  <a href="#" class="px-3 py-2 text-sm font-medium text-gray-700 bg-gray-200 rounded-md hover:bg-gray-300 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-600">
    4
  </a>
  <a href="#" class="px-3 py-2 text-sm font-medium text-gray-700 bg-gray-200 rounded-md hover:bg-gray-300 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-600">
    5
  </a>
  <button class="px-3 py-2 text-sm font-medium text-gray-700 bg-gray-200 rounded-md hover:bg-gray-300 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-600">
    Next
  </button>
</nav>

関連コンポーネント

ページネーションコンポーネント

レスポンシブエフェクトとダークテーマのサポートを備えたダークモードUIのページネーションコンポーネント。

開ける

ページネーションコンポーネント

パステルカラーのシンプルでエレガントなダークモードページネーションコンポーネントで、ソーシャルメディアアプリケーションに適しています。レスポンシブデザインが特徴で、ダークモードのサポートを含むスタイリングにTailwind CSSを使用しています。

開ける

Neumorphic Pagination コンポーネント

ブログインターフェイス用に Neumorphism でスタイル設定されたレスポンシブでインタラクティブなページネーションコンポーネントで、ダークモードをサポートしています。

開ける