Product List 34 - Quick Add Product Grid

Pro

A tabbed electronics grid where the add button expands each card in place into a color and quantity picker while neighboring cards reflow around it.

Shadcn Product List 34 block

Component data

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

Product List 34 block design & features

A tabbed product grid of headphones, earbuds, speakers and watches. Each card shows a photo, rating, name, price and tags, with a round add button on the image and a bag count beside the heading.

Pressing add widens the card across two columns with a motion layout spring, and the other cards slide into their new places. Color swatches, a quantity stepper and an add button stagger in. Adding collapses the card, morphs the plus icon into a check, shows how many are in the bag and rolls the header count up. Products, colors and prices live in a data array; the bag lives in local state.

Built with shadcn/ui Tabs, Button and Badge. On phones the grid is two columns and the open card spans the full width, so the picker sits beside the photo. Escape or the close button collapses it and returns focus to the add button.