Cart with quantities
The full cart page: keyboard-editable quantities, undoable removal, promo code, free-delivery gauge and totals recalculated then announced.
- Tailwind
- React
- CSS
- WordPress
Description
Each item has a quantity stepper bounded by stock (buttons and direct input). Removing an item leaves an Undo button in its place, which receives focus. A status region announces every change with the new total, and the free-delivery bar is a labelled progressbar. Without JavaScript the cart stays readable with its quantities and totals. Accessibility: fully keyboard operable, 44 px targets, AA contrast in light and dark, gauge animation disabled with prefers-reduced-motion.
Code
Loading the code…
The code of this component in
Archive contents
panier-quantites-html-tailwind.zip3 files · 8 Ko
- index.html28 Ko
- README.md3 Ko
- LICENSE.md1 Ko
Tags
Updated on December 2, 2026.
Reviews
No reviews yet.
In the same spirit

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

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

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

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