Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { ProductVariantSelector, type OptionGroup } from "@/components/motiq/product-variant-selector";const groups: OptionGroup[] = [ { id: "color", type: "color", label: "Colour", values: [ { value: "graphite", label: "Graphite", swatch: "#3a3f47", inventoryState: "in_stock" }, { value: "silver", label: "Silver", swatch: "#c9cdd3", inventoryState: "low_stock" }, { value: "blue", label: "Blue", swatch: "#315fea", inventoryState: "in_stock" }, ], }, { id: "storage", type: "storage", label: "Storage", values: [ { value: "256", label: "256 GB", priceAdjustment: 0, recommended: true, inventoryState: "in_stock" }, { value: "512", label: "512 GB", priceAdjustment: 200, inventoryState: "backordered" }, { value: "1tb", label: "1 TB", priceAdjustment: 400, inventoryState: "out_of_stock" }, ], },];export default function ProductVariantSelectorDemo() { return ( <ProductVariantSelector groups={groups} basePrice={1200} productName="Laptop" className="w-full max-w-xl" /> );}