Skip to content

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.

byShadcnblocks.comfrom Kibo UI

Loading preview

Installation

terminal
pnpm dlx layro-cli add @shadcnblocks/comparison

New project? Start with init. Writes third-party code and installs packages with scripts off.

Code

Demo

Sign in to see the code

Free, with GitHub, Google or email. The install command above works without an account.

Sign in

Versions

  1. 1.0.0 · current

    Nov 7, 2026

    First release.

Similar components