Skip to main content
74 · cart-checkoutForms & Inputs5 Variations

Cart and Checkout

Five frontend demonstration commerce flows featuring live quantity arithmetic, item removal, promo calculation, guest-friendly address autofill semantics, and zero payment credential capture.

cartcheckoutorder-summaryconfirmationcommerce-demo
Cart Drawer
cart-checkout/cart-drawer
Loading variation cart-checkout/cart-drawer...

Component Information

Slide-over native `<dialog>` shopping drawer calculating live subtotal and item badge counts with increment/decrement, removal, and sample reset.

Variation ID
cart-checkout/cart-drawer
Motion Engine
css
Source File
src/labs/components/components/cart-checkout/variations/cart-drawer.tsx
Reduced Motion & Accessibility

Zero slide delay; instant native dialog sheet presentation.

  • Uses `100svh` drawer height, autoFocus close button, and live subtotal announcements.
Dependencies
  • lucide-react^0.553.0Required

    ShoppingCart, Minus, Plus, Trash2, RotateCcw, and X icons

Usage Documentation

import { CartDrawer } from '@/src/labs/components/components/cart-checkout';

export function ExampleCartDrawer() {
  return <CartDrawer />;
}

Props API (1)

PropTypeDefaultDescription
initialItemsCartLineItem[]—Sample cart items.