Embed the gallery
1. Iframe with auto-height
<iframe id="merchhub" src="https://YOUR-GALLERY-DOMAIN/embed?site=phxrx&hideFilters=1&columns=3"
style="width:100%;border:0" title="Shop merch" loading="lazy"></iframe>
<script>
window.addEventListener("message", function (e) {
if (e.data && e.data.type === "merchhub:height") {
document.getElementById("merchhub").style.height = e.data.height + "px";
}
});
</script>2. URL options
- site / brand / category / store
- Filter products (e.g. site=phxrx, category=apparel, store=teepublic)
- accent, bg, fg
- Any CSS color, e.g. accent=%23ff6a00
- radius, font
- CSS values, e.g. radius=4px, font=Georgia
- columns
- Columns on wide screens (1–6)
- limit
- Max products shown
- hideFilters=1
- Hide the filter chips
- hideDisclosure=1
- Hide the affiliate disclosure
- title
- Heading above the gallery
- showIncomplete=1
- Also show products still missing details
3. React component
// Copy src/components/merch, src/lib/store.ts, src/lib/quality.ts
// and src/data/products-snapshot.json into your project.
import { MerchGallery } from "@/components/merch/MerchGallery";
import { useMerchProducts } from "@/components/merch/useMerchProducts";
import { themeStyle } from "@/components/merch/brands";
export function Shop() {
const { products, loading } = useMerchProducts({ site: "phxrx" });
const [filters, setFilters] = useState({});
return (
<div style={themeStyle("phxrx")} className="bg-mh-bg">
<MerchGallery products={products} loading={loading}
filters={filters} onFiltersChange={setFilters} columns={3} />
</div>
);
}Theme tokens: --mh-accent, --mh-accent-fg, --mh-bg, --mh-fg, --mh-muted, --mh-card, --mh-line, --mh-radius, --mh-font.