For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Pro or Ultimate license.
Best for: A dense buy column with Buy Now under Add To Cart and a low stock line capping quantity, over About and specs side by side
When to use
- A storefront page for one item: gallery, price, specs, reviews and an add to cart button
- Goods the shopper configures first, picking a color, size, connector or edition before buying
- Editorial launch pages that tell one item's story, or an ebook sold in several editions
When not to use
- Sizes that can be sold out, with details split across 4 tabs: use the Size Picker Detail block
- A thumbnail gallery needed on its own, outside a product page: use the Carousel component
- A single item tile or a carousel of tiles, each linking out to its own page: use the Product Card blocks
- A category listing of many items side by side, with swatches or quick add per tile: use the Product Grid blocks
- A staff view of one SKU's stock levels and reorder rules, not a shopper page: use the Inventory blocks
Agent notes
stockLeftis one count that capsquantityand fills the low stock line for every color and size, so wire per variant stock- The Buy Now
ButtoninBuyBoxhas noonClick, so route it straight to your checkout shippingFreeOverfeeds the free shipping line under the pickers, so set it to your threshold- Each block reads one
PRODUCTrecord and aGALLERYlist from its data.ts; map your catalog item onto those shapes - The Add to Cart or Add to Bag
Buttonhas noonClickin any block, and the heart only flips localwishlistedstate - Each page.tsx wraps
ProductDetailin amin-h-svhmain, andProductDetailsets its own max width and padding; drop both in your store layout
Third-party API docs
- Embla Carousel Autoplay v8: API reference, docs
- Embla Carousel v8: API reference, docs, through shadcn Carousel
https://web.dev.reui.io/blocks/ecommerce/product-detail/product-detail-5.mdget_block("product-detail-5")npx shadcn@latest add @reui/product-detail-5Shadcn Components in the Compact Buy Box Block
Dependencies
- cn
- embla-carousel-autoplay
Shadcn Compact Buy Box Block
Compact Product Detail Page with Sticky Thumbnail Gallery and Dense Buy Box. Part of the ReUI Shadcn eCommerce Product Detail blocks collection.
Ecommerce product page: sticky thumbnail gallery, dense buy box with color and size pickers, quantity stepper, Add to Cart, Buy Now, wishlist, specs, rating breakdown and review carousel. ReUI Rating, Badge; shadcn Button, Carousel, Progress.
It is composed from Avatar, Badge, Button, Button Group, Carousel, Item, Progress, Rating, and more, so every part of it is a primitive you can restyle with your own design tokens.
What You Can Build With the Compact Buy Box Block
- Install it with the ReUI registry command in the toolbar above, then swap the placeholder content, data wiring, and business logic for your own.
- Compare it across all eight ReUI styles and both the Base UI and Radix bases in the customizer before committing to one direction.
- Combine it with the other Shadcn eCommerce Product Detail blocks to assemble a full screen instead of a single section.
All Shadcn eCommerce Product Detail Blocks
The rest of this category, each on its own page with a live preview, the components it is built from, and the install command.
- Size Picker Detail Ecommerce product detail page with image gallery, variant picker, and reviews
- Story Product Page Editorial product detail page with filmstrip gallery, story chapters, and reviews
- Spec Table Detail Product Detail Page with Sticky Buy Box, Variant Pickers, and Reviews
- Ebook Detail Page Ebook product detail page with Look Inside gallery, edition format picker, and chapter contents
- Single-Column Detail Editorial Single-Column Product Detail Page with Chapter-Numbered Story Body and Centered Buy Box
Related Shadcn eCommerce Block Categories
- Category Card (6) Category cards with featured products, banners, and subcategory navigation.
- Checkout (7) Checkout flows with shipping details, payment forms, and order confirmation steps.
- Comparison (6) Product comparison tables with side-by-side feature and specification layouts.
- Coupon (6) Coupon code input fields, discount badges, and promotional offer display blocks.
- Filter Sidebar (7) Filter and facet sidebars for refining product searches by price, size, and attributes.
- Product Card (10) E-commerce product cards with images, pricing, variants, and add-to-cart actions.
All Shadcn Block Groups
Browse the full ReUI Shadcn blocks library by product surface. Each group bundles category-level blocks you can mix and match across your project.
- Shadcn Application Blocks (303) Browse 303 Shadcn Application blocks across 23 categories.
- Shadcn Data Grid Blocks (47) Browse 47 Shadcn Data Grid blocks across 9 categories.
- Shadcn Charts Blocks (52) Browse 52 Shadcn Charts blocks across 10 categories.
- Shadcn Solutions Blocks (76) Browse 76 Shadcn Solutions blocks across 11 categories.
- Shadcn AI & Agents Blocks (22) Browse 22 Shadcn AI & Agents blocks across 3 categories.
- Shadcn eCommerce Blocks (87) Browse 87 Shadcn eCommerce blocks across 13 categories.
- Shadcn Marketing Blocks (67) Browse 67 Shadcn Marketing blocks across 8 categories.
Frequently Asked Questions
When should I use the Compact Buy Box block?
Use it for a dense buy column with Buy Now under Add To Cart and a low stock line capping quantity, over About and specs side by side.
The Product Detail category fits:
- A storefront page for one item: gallery, price, specs, reviews and an add to cart button
- Goods the shopper configures first, picking a color, size, connector or edition before buying
- Editorial launch pages that tell one item's story, or an ebook sold in several editions
For sizes that can be sold out, with details split across 4 tabs, use the Size Picker Detail block. For a thumbnail gallery needed on its own, outside a product page, use the Carousel component. For a single item tile or a carousel of tiles, each linking out to its own page, use the Product Card blocks. For a category listing of many items side by side, with swatches or quick add per tile, use the Product Grid blocks. For a staff view of one SKU's stock levels and reorder rules, not a shopper page, use the Inventory blocks.
What is the Compact Buy Box block built with?
Can I restyle the Compact Buy Box block?
How should I use Shadcn product detail blocks in a real project?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.