Skip to content

Product catalog filters

A faceted filter panel for a catalog: category, price, size, colour and stock, with a result counter, active filter chips, sorting and a mobile drawer.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

Visitors tick one or more categories, sizes and colours, enter a price range and can show only items in stock. Each option shows how many products it would give with the other filters already chosen, the result counter updates live and each active filter becomes a chip removed in one click, or all at once with "Clear all". Sorting (relevance, price ascending or descending, newest) reorders the grid, and a message suggests widening the search when nothing matches. Below 768 px, the filters move into a side drawer with a button showing the number of active filters and a "See N products" button. Accessibility: everything works with the keyboard, the drawer is a modal dialog (trapped focus, Escape to close, focus returned to the button), the result count is announced by a live region, chips are labelled "Remove filter…", contrast exceeds 4.5:1 in light and dark modes and the drawer animation stops with prefers-reduced-motion. Replace the demo products with your catalog.

Code

Loading the code…

Archive contents

filtres-catalogue-produits-html-tailwind.zip3 files · 10 Ko

  • index.html55 Ko
  • README.md4 Ko
  • LICENSE.md1 Ko

Tags

Updated on October 16, 2026.

In the same spirit

  • The full cart page: keyboard-editable quantities, undoable removal, promo code, free-delivery gauge and totals recalculated then announced.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A gift card form: preset or custom amount, design, recipient, message and send date, with a live preview of the card.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • The cart summary before checkout: items with thumbnail and quantity, a free-shipping gauge, a promo code and a total recalculated on every change.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A complete product page: product views, colors and sizes as radio buttons, a quantity selector and an announced add-to-cart.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component