Compare Products 8 block design & features
A head-to-head chair comparison built with shadcn/ui. Two square product photos sit on either side of a central spec list covering price, rating, weight, seat height and warranty, with each side's name and a count of the specs it wins.
Under each photo a row of thumbnail radios swaps in a different chair; the chair already on the other side is disabled. The photo crossfades, the values update, and the better value in each row turns bold with a small check, so the balance of the comparison visibly shifts with every swap. Informative specs such as seat height never get a winner.
Good for helping shoppers decide between two close options from a small range. Chairs, specs, which direction is better and the starting pair are props, and on small screens the spec list moves below the two photos.
