Skip to content

E-commerce components in HTML and CSS

Product pages, shipping choice and order summary: the building blocks of an online shop.16 free components to copy in HTML and CSS, accessible and responsive, with a live preview.

The 16 components

  • A limited-time offer bar: countdown to a fixed date, one-click copyable promo code and a fallback message once the offer is over.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A sales card showing the discount that grows with the cart amount (-10% from €50, -15% from €100…) with a progress bar towards the next tier.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A Christmas gift guide filtered by budget and theme, with the number of ideas announced and an empty state offering to show everything again.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • The last order dates for delivery before Christmas, per shipping method, with the days left worked out from the visitor’s date.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A cart that shows live how much is left to add for free shipping, with a progress bar and recalculated totals.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A colour and size picker for a product page: the visual, price and stock follow the choice, and sold-out sizes are disabled.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A wishlist for an online shop: add from product cards, a summary with total and removal, remembered in the browser.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A size picker with a modal guide: a measurement table and a size recommended from the chest measurement, in one click.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Tick two or three products to compare them side by side in an accessible table, with no reload.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A promo code field that checks the code, explains a refusal (unknown, minimum spend) and recalculates discount, shipping and total.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • 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 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
    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
  • Radio cards to pick a shipping method, with each option's delay and price, and an order total that updates instantly.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component