Product Detail 48 - Dimension Overlay Product Page

Pro

A sofa product page where a Show dimensions switch draws measurement lines over the photo, with a cm and inch toggle that rolls every number.

Shadcn Product Detail 48 block

Component data

ID
product-detail48
Access
pro
Created
Oct 31, 2026
Type
block
Libraries
Radix UI, Base UI, React Aria

Product Detail 48 block design & features

A front-on room photo of the sofa takes the left two thirds, with a switch and a unit toggle beneath it. The right column holds the title, price, color swatches, quantity, add to cart, description and a dimensions table. It uses shadcn/ui and draws the lines in an SVG layer sized to the photo.

When the photo scrolls into view, width, height, seat height and depth lines draw on one after another, with end caps and labels fading in at each line. Turning the switch off retracts them in reverse. The unit toggle converts every label and the table between centimeters and inches with a rolling number. Measurements are stored in millimeters with line and label positions, so other products only need new numbers and coordinates.

On mobile the photo and controls stack above the product details and the labels shrink to stay readable. With reduced motion the lines appear without drawing.