Tailwind UI Pattern Registry for humans and agents

image compare vertical before after top bottom split image compare vertical before after top bottom split horizontal-divider vertical before after comparison top bottom image split

Image Comparer Vertical

Fetch pattern JSON: curl https://webspire.de/patterns/image-comparer/vertical.json

Details

Family
image-comparer
Tier
enhanced
Kind
component
Extends
image-comparer/base
Responsive Dark Mode Tailwind Only SSR Safe Copy & Paste
Stable Published
imagecompareverticalbeforeaftertopbottomsplit

Slots

Name Required Description
before Yes Before image (top half).
after Yes After image (bottom half).
labels No Before/After label badges.

Vertical variant of the image comparer with a horizontal divider line. The “before” layer clips to the top half using clip-path: inset(0 0 50% 0). The drag handle shows up/down arrows instead of left/right. Labels appear top-left (“Before”) and bottom-right (“After”).