Ecommerce Pro 4: cart drawerPRO
A store bar with a bag button that opens a side drawer: quantities, remove with undo, a free-delivery progress bar, subtotal and checkout.
Installation
Once per project: add the Pro registry and your licence key.
components.json{ "registries": { "@ballmac": "https://ui.ballmac.com/r/{name}.json", "@ballmac-pro": { "url": "https://ui.ballmac.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${BALLMAC_LICENSE_KEY}" } } } }.env.localBALLMAC_LICENSE_KEY=your-licence-keyAdd it.
$ pnpm dlx shadcn@latest add @ballmac-pro/ecommerce-pro-4Need a licence or help with setup?
Usage
import { EcommercePro4 } from "@/components/ballmac/blocks/ecommerce-pro-4/ecommerce-pro-4"Dependencies
- npm
- lucide-react
Use with AI
Slide-over cart. Changes are announced politely and removals can be undone. onChange keeps your store in step. With the shadcn MCP server set up (guide), ask your agent:
Add the Ballmac UI Ecommerce Pro 4: cart drawer (@ballmac-pro/ecommerce-pro-4) to this project with the shadcn MCP, then use it where it fits.
Use it for
- Always-available cart
Not for
- A dedicated cart page (use ecommerce-pro-5)
Registry JSON (needs your licence key): https://ui.ballmac.com/r/pro/ecommerce-pro-4.json
Covered by the Ballmac UI Pro license.
More ecommerce blocks
Ecommerce Pro 1: catalogue with filters
A product grid with category, price and colour filters, sorting, a wishlist heart and a quick add button. A live count says how many products match.
Ecommerce Pro 10: order confirmation with tracking
A thank-you page with a copyable order number, a four-stage tracker, items, totals, address and payment summary.
Ecommerce Pro 11: order history
Past orders with status filters and counts, search, expandable details, a track link and Buy again.
Ecommerce Pro 12: compare products
Choose up to three products and compare them in a table with a sticky first column, a differences-only switch and add buttons.