Compare Products 5 - Add-to-compare grid flowPro

A two-step flow: shoppers tap Add to compare on product cards, a counter bar appears, and Compare swaps the grid for a comparison table with a back button. Use it when you want comparison built into the listing itself instead of a separate page.

About Compare Products 5

A two-step flow: shoppers tap Add to compare on product cards, a counter bar appears, and Compare swaps the grid for a comparison table with a back button. Use it when you want comparison built into the listing itself instead of a separate page.

Compare Products 5 is a pro compare products block for React, built on shadcn/ui and Tailwind CSS with motion animations that respect reduced-motion settings. It ships as 129 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.

  • compare
  • flow
  • product grid
  • add to compare
  • table
  • steps

Installation

  1. Add the Chocolate UI registry to your components.json (see the installation guide).
  2. Run the shadcn CLI:
npx shadcn@latest add @chocolate/compare-products-05

Dependencies installed automatically: lucide-react, motion.

Uses: button, reveal, table, use-reduced-motion, utils.

Usage

import CompareProducts05 from "@/components/blocks/compare-products-05"

export default function Page() {
  return <CompareProducts05 />
}

FAQ