Storefront Suite
Production-oriented ecommerce building blocks for catalog, PDP, cart, and checkout.
Quickstart
- Ensure the registry is set up in Installation.
- Run the registry command:
npx shadcn@latest add https://gen-ui-eta-two.vercel.app/r/generic-catalogArchitecture
StorefrontSystemhandles catalog rendering directly for simple projects.StorefrontExperiencehandles 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
| Prop | Type | Notes |
|---|---|---|
| StorefrontSystem | system | Catalog-level system (filters, sort, pagination, layout) |
| StorefrontExperience | system | Journey orchestrator (catalog → pdp → cart → checkout) |
| generic-catalog | /r/generic-catalog | Filtering, sorting, pagination ready catalog |
| generic-pdp | /r/generic-pdp | Variants, gallery, buy box, quantity flow |
| generic-cart | /r/generic-cart | Cart item controls and order summary |
| generic-checkout-flow | /r/generic-checkout-flow | Step orchestrator with validation hooks |