Comparison
A slider-based component for comparing two items in an overlay. It displays a draggable slider to reveal parts of each item. It responds to mouse and touch interactions. Use it to compare images or content side by side.
Loading preview
Installation
terminal
npx layro-cli add @shadcnblocks/comparison
npx layro-cli add @shadcnblocks/comparison
bunx layro-cli add @shadcnblocks/comparison
New project? Start with init. Writes third-party code and installs packages with scripts off.
Code
Sign in to see the code
Free, with GitHub, Google or email. The install command above works without an account.
Sign inVersions
1.0.0 · current
Nov 7, 2026
First release.







