React components

An optional convenience layer over the URL primitive.

Overview

A mockup is a URL. You can render and sell merchandise in any language with nothing installed — see Get started and Render a mockup. These React components are an optional convenience layer over that primitive — handy if you’re building a React storefront, unnecessary everywhere else.

If you’re not on React, skip this section. Everything here is just ergonomics around the same img.snowcone.app and buy.snowcone.app URLs.

Setup

Install @snowcone-app/ui, then wrap your app in the <Shop> provider so the components know which Shop ID to render and sell against. The components are styled by your Tailwind v4 build: add @import '@snowcone-app/ui/styles/globals.css' to your global CSS, an @source for your own code, and (in Next.js) transpilePackages: ['@snowcone-app/ui']. There’s no install CLI — see Shop setup for the full snippet.

Shop setup

All components

The building blocks for a React storefront. Each wraps the same URL primitive you can use directly.