React components
Optional UI for Next.js / React apps that already useuseStore() on the server.
@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
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
<CheckoutSuccess session={session} />.
Related
- TypeScript SDK —
useStore() - One-prompt DIY
- Framework guides