Storefront Cart
Full shopping cart page with quantity steppers, promo code and totals.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this page
What it's for
- Full shopping cart page with quantity steppers, promo code and totals.
- Cart with remove and undo, a free shipping meter and a checkout button.
- E-commerce basket page with suggested products.
For a slide-over cart on any page, use Commerce Cart Drawer.
Includes
- Quantity stepper
- Remove with undo
- Promo code
- Free shipping meter
- Order totals
- Empty cart
- Suggested products
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19 and Tailwind CSS 4 in Next.js (App Router), Vite, React Router or TanStack Start, installed with the agentic-ui or shadcn CLI
- Your theme tokens, in light and dark mode
- 1 template or blueprint on this site use it (below)
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add storefront-cartInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/storefront-cartUsed in
- Type
- Page
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Motion
- Animated, with a reduced-motion fallback
- npm packages
lucide-react- Registry dependencies
commerce-cart-drawercommerce-order-trackingcommerce-reviews-blockcommerce-variant-pickerlib-primitivessearch-faceted-sidebar- Files
21 files
- components/agentic-ui/storefront-cart/screens/cart.tsx
- components/agentic-ui/storefront-cart/lib/stores.ts
- components/agentic-ui/storefront-cart/lib/types.ts
- components/agentic-ui/storefront-cart/lib/art.ts
- components/agentic-ui/storefront-cart/lib/store.ts
- components/agentic-ui/storefront-cart/lib/orders-model.ts
- components/agentic-ui/storefront-cart/lib/money.ts
- components/agentic-ui/storefront-cart/lib/cart-model.ts
- components/agentic-ui/storefront-cart/content/shipping.ts
- components/agentic-ui/storefront-cart/content/catalog.ts
- components/agentic-ui/storefront-cart/content/taxonomy.ts
- components/agentic-ui/storefront-cart/content/reviews.ts
- components/agentic-ui/storefront-cart/lib/block-types.ts
- components/agentic-ui/storefront-cart/content/products-wear.ts
- components/agentic-ui/storefront-cart/content/products-gear.ts
- components/agentic-ui/storefront-cart/content/orders.ts
- components/agentic-ui/storefront-cart/lib/shop-model.ts
- components/agentic-ui/storefront-cart/components/product-card.tsx
- components/agentic-ui/storefront-cart/components/product-bits.tsx
- components/agentic-ui/storefront-cart/components/order-summary.tsx
- components/agentic-ui/storefront-cart/components/cart-parts.tsx
Related components
Storefront Checkout
Three step checkout with shipping address, demo payment and review.
Details and live previewStorefront Home
Online store home page with a hero, collections and featured products.
Details and live previewStorefront Not Found
404 page for an online store with search and links to the shop.
Details and live previewStorefront Orders
Customer order history with a tracking timeline for the selected order.
Details and live preview