Product Detail 40 - Colorway Grid Reorder

Pro

Apparel product page where picking a colorway reshuffles the photo grid with staggered springs and recolors the frame line from the swatch.

Shadcn Product Detail 40 block

Component data

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

Product Detail 40 block design & features

A product detail page for a denim puffer built with shadcn/ui. A two by two photo grid inside a thin frame sits beside the title, price, reviews, color and size options, add to cart, service links and an accordion for description, features and fabric.

Choosing a colorway reorders the grid with Motion layout animations so a different photo leads, each tile springing in with a slight stagger. The thin frame line around the grid recolors with the colorway's hex value, wiping outward from the selected swatch's position. The color name animates in letter by letter. Colorways, hex values, sizes and photos are all data.

On mobile the grid stays two by two above the details. Out of stock options are announced and skipped. With reduced motion, the reorder snaps into place and the frame color fades in.