Compare 4 - Two before/after cards joined byPro
Two before/after cards joined by an arrow, with a strip of counting outcome metrics underneath.
About Compare 4
Two before/after cards joined by an arrow, with a strip of counting outcome metrics underneath.
Compare 4 is a pro compare block for React, built on shadcn/ui and Tailwind CSS. It ships as 120 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.
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/compare-04Dependencies installed automatically: lucide-react.
Uses: number-ticker, reveal, utils.
Usage
import Compare04 from "@/components/blocks/compare-04"
export default function Page() {
return <Compare04 />
}