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 dropdown anchored under a Cart count button, its compact lines in a height capped scroll area above a subtotal footer
When to use
- A cart page where shoppers change quantities, remove lines and see the totals before paying
- A mini cart that drops from a header Cart button or slides in from the side after an add
When not to use
- A drawer that slides in from the right edge right after an add: use the Add-to-Cart Drawer block
- Plain text actions in a popup, with no prices, thumbnails or quantities: use the Dropdown Menu component
- Rows of funds, coins, transactions or integrations, with no quantities or order total: use the List blocks
- A side panel over an app page for a record, a form or an assistant, with no prices: use the Sheet blocks
- Taking contact, shipping address and card details to place and pay for the order: use the Checkout blocks
Agent notes
DropdownMenuopens withdefaultOpenand auseEffectblurs the first focus; remove both for a real header carthandleDecreaseremoves the line when its quantity is 1, so the minus button doubles as Remove; save that removal in your store- View Cart and Checkout are fixed anchors rendered through the Button
renderprop; set theirhrefto your cart and checkout routes - Lines live in local
useStateseeded fromCART_ITEMSorCART_LINESin data.tsx; read them from your cart store and write each quantity change back - The empty state's Restore Sample Cart button reloads the demo lines through
handleRestoreCartorhandleRestore; point it at your catalog - Each priced file declares its own
formatCurrencyfixed to en-US and USD; change every copy to show another currency or locale
Third-party API docs
- Base UI v1: API reference, docs, llms.txt
https://web.dev.reui.io/blocks/ecommerce/shopping-cart/shopping-cart-6.mdget_block("shopping-cart-6")npx shadcn@latest add @reui/shopping-cart-6Shadcn Components in the Cart Dropdown Block
Dependencies
- @base-ui/react
- cn
Shadcn Cart Dropdown Block
Quick Cart Dropdown Menu with Per-Row Quantity Steppers and Live Subtotal. Part of the ReUI Shadcn eCommerce Shopping Cart blocks collection.
Mini-cart popover from a Cart button with count Badge: rows with thumbnail, variant, a quantity stepper driving a live subtotal, View Cart, Checkout, and an Empty state. DropdownMenu, ScrollArea, ButtonGroup, Item, Button. For header cart preview.
It is composed from Badge, Button, Button Group, Dropdown Menu, Empty, Item, Scroll Area, so every part of it is a primitive you can restyle with your own design tokens.
What You Can Build With the Cart Dropdown 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 Shopping Cart blocks to assemble a full screen instead of a single section.
All Shadcn eCommerce Shopping Cart 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.
- Save-for-Later Cart Shopping Cart Review With Item List, Free-Shipping Progress, Promo Code, and Order Summary Sidebar
- Delivery Summary Cart Two-Column Shopping Cart Page with Sticky Order Summary Frame and Coupon Field
- Data Table Cart Data Table Shopping Cart with Column Header Rail, Quantity Steppers, and Order Summary
- Pickup Option Cart Full-Page Shopping Cart with Per-Item Delivery or Pickup Toggle and Sticky Order Summary
- Payment Method Cart Two-column shopping cart with order summary, coupon field, and payment method tiles
- Add-to-Cart Drawer Mini Cart Slide-Out Sheet Drawer with Just Added Confirmation and Free Shipping Progress
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 Cart Dropdown block?
Use it for a dropdown anchored under a Cart count button, its compact lines in a height capped scroll area above a subtotal footer.
The Shopping Cart category fits:
- A cart page where shoppers change quantities, remove lines and see the totals before paying
- A mini cart that drops from a header Cart button or slides in from the side after an add
For a drawer that slides in from the right edge right after an add, use the Add-to-Cart Drawer block. For plain text actions in a popup, with no prices, thumbnails or quantities, use the Dropdown Menu component. For rows of funds, coins, transactions or integrations, with no quantities or order total, use the List blocks. For a side panel over an app page for a record, a form or an assistant, with no prices, use the Sheet blocks. For taking contact, shipping address and card details to place and pay for the order, use the Checkout blocks.
What is the Cart Dropdown block built with?
Can I restyle the Cart Dropdown block?
How should I use Shadcn shopping cart 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.