All blocks

Compare Split

Marketing

Two model answers side by side in resizable, scroll-synced panes — the view for A/B-ing completions to one prompt. Hand-built (no libraries): a draggable role=separator with pointer capture and keyboard nudging, and proportional scroll sync guarded by a one-shot ignore flag so the two panes never stutter in a feedback loop. Fully keyboard-accessible and monochrome.

Open

Installation

Terminal
npx shadcn@latest add https://ui.saumyarex.xyz/r/compare-split.json

Installs the block and its component dependencies in one step.