# Ecommerce Cart: Mini Cart Drawer

The open drawer with two items, a shipping meter, and honest top up arithmetic.

- Page: https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/mini-cart-drawer
- Collection: [Ecommerce](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro), Standard tier
- Group: [Carts](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts)
- Created: 2026-06-15
- Preview image: https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/mini-cart-drawer.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/ecommerce-pro-shopping-carts-mini-cart-drawer
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button, placeholder
- Installs to: `@/components/blocks/ecommerce-pro/shopping-carts/mini-cart-drawer`

## About this block

Mini Cart Drawer renders a static open drawer panel as a
right aligned card: two items with thumbnail placeholders,
a progress bar showing $63 of $75 toward free shipping,
and the note &ldquo;A wax tin gets you there, but only if
you need wax. Paying $18 to save $7 is not a saving.&rdquo;
Below the meter: subtotal, a primary checkout button and
a ghost view cart button. The close affordance is an X
icon top right. The panel is rendered open as a blueprint,
not triggered by state.

Items are one array. The anti upsell note on the shipping
meter is the move that earns the drawer its honesty.

## When to use

Reach for this block as the slide over cart preview wired
to the
[store navbar](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-navbars) cart
icon. The free shipping threshold and the product named
in the top up note must match the store configuration
or the arithmetic misrepresents the offer.

A natural flow around it on an Ecommerce Pro page:

**Before**

- [Store navbar](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-navbars)

**After**

- [Checkout](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/checkouts)

## What you can display

One strong use is the two item open drawer with the
honest shipping meter. Other mini cart configurations:

- **Empty state.** The drawer open with no items, a
  short line and a link back to the
  [store hero](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/store-heroes).
- **Threshold met.** The meter full, the free shipping
  confirmed, no further suggestion.
- **Single item.** One item in the drawer before the
  subtotal, the meter shown only if the gap is real.

> Tip: the shipping top up note works because it names
> a specific product and runs the arithmetic out loud;
> a generic &ldquo;add more to qualify&rdquo; does the
> opposite.

## More in Ecommerce Carts

- [Bulk Order Cart](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/bulk-order-cart)
- [Cart Stock Warnings](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/cart-stock-warnings)
- [Cart With Delivery Estimates](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/cart-with-delivery-estimates)
- [Cart With Duties](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/cart-with-duties)
- [Cart With Eco Options](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/cart-with-eco-options)
- [Cart With Gift Split](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/cart-with-gift-split)
- [Cart With Installments Preview](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/cart-with-installments-preview)
- [Cart With Order Notes](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/cart-with-order-notes)
- [Cart With Price Drops](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/cart-with-price-drops)
- [Cart With Promo Code](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/cart-with-promo-code)
- [Cart With Recommendations](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/cart-with-recommendations)
- [Cart With Save For Later](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/cart-with-save-for-later)
- [Cart With Trade In](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/cart-with-trade-in)
- [Compact Cart Summary](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/compact-cart-summary)
- [Empty Cart State](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/empty-cart-state)
- [Free Shipping Progress Cart](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/free-shipping-progress-cart)
- [Full Cart Page](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/full-cart-page)
- [Gift Options Cart](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/gift-options-cart)
- [Mini Cart Panel](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/mini-cart-panel)
- [Saved For Later Cart](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/saved-for-later-cart)
- [Shared Cart](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/shared-cart)
- [Subscription Items Cart](https://www.shadcn-ui-blocks.com/blocks/ecommerce-pro/shopping-carts/subscription-items-cart)
