Skip to main content

React components

Optional UI for Next.js / React apps that already use useStore() on the server.
Requires @quickshops/sdk@1.1.0+ for the /react export.

v1 scope (SSR)

Custom storefronts are SSR-first for SEO. There is no publishable / browser API key in v1.

Theming (parent CSS variables)

Components are shadcn-style: Tailwind utility classes + data-slot attributes that read your theme tokens. They expect the usual shadcn / Tailwind v4 CSS variables on :root (or your theme), for example:
  • --background, --foreground
  • --card, --card-foreground
  • --primary, --primary-foreground
  • --secondary, --muted, --accent, --border, --input, --ring
If your Lovable / v0 / Next app already uses shadcn, no extra theme setup — pass className to override. Override any part with className (merged via tailwind-merge).

Composition primitives

Prefer composing slots over boolean props:

Available surface

Flat named exports (BuyButton, ProductCard, …) are also available.

Example: catalog + buy now

Storefront.Grid with no children renders a ProductCard per product. Compose slots yourself when you need a custom layout.

Example: success page

Or the recipe: <CheckoutSuccess session={session} />.