Storefront Suite

Production-oriented ecommerce building blocks for catalog, PDP, cart, and checkout.

Quickstart

  1. Ensure the registry is set up in Installation.
  2. Run the registry command:
npx shadcn@latest add https://gen-ui-eta-two.vercel.app/r/generic-catalog

Architecture

  • StorefrontSystem handles catalog rendering directly for simple projects.
  • StorefrontExperience handles stage orchestration for production flows.
  • Catalog for browsing/search/facets with typed filters + sort + paging.
  • PDP for product decision + variant selection + add-to-cart callbacks.
  • Cart for quantity and pricing lifecycle, with deterministic totals helper.
  • Checkout flow orchestration with step validation and submit hooks.

System Example

import { StorefrontExperience } from "@/components/systems/storefront/storefront-system"

<StorefrontExperience
  products={products}
  initialStage="catalog"
  onCheckoutSubmit={async (checkout, items) => {
    await placeOrder({ checkout, items })
  }}
/>

Install Commands

npx shadcn@latest add https://gen-ui-eta-two.vercel.app/r/generic-catalog

npx shadcn@latest add https://gen-ui-eta-two.vercel.app/r/generic-pdp

npx shadcn@latest add https://gen-ui-eta-two.vercel.app/r/generic-cart

npx shadcn@latest add https://gen-ui-eta-two.vercel.app/r/generic-checkout-flow

Demo

Live example: Storefront demo.

API Reference

PropTypeNotes
StorefrontSystemsystemCatalog-level system (filters, sort, pagination, layout)
StorefrontExperiencesystemJourney orchestrator (catalog → pdp → cart → checkout)
generic-catalog/r/generic-catalogFiltering, sorting, pagination ready catalog
generic-pdp/r/generic-pdpVariants, gallery, buy box, quantity flow
generic-cart/r/generic-cartCart item controls and order summary
generic-checkout-flow/r/generic-checkout-flowStep orchestrator with validation hooks
← Previous: State BoundaryNext: Generic Catalog