Product Variants
@sushindustries/react-product-viewerOne model, several configurations, switched without reloading the asset - the GLB already holds them.
Examples are the tab where the component is shown doing a job, not demonstrating a prop. The API tab already lists the props.
tanstacktanstack add https://adamjurek.com/r/tanstack/product-variants.jsonpnpm dlx shadcn@latest add https://adamjurek.com/r/shadcn/product-variants.jsonPress Compare. The frames are real viewports, so a layout that breaks at 320 breaks here too rather than in somebody's hands.
In a page
import { Something } from "@sushindustries/ui";
export function Page() {
return (
<main className="container section">
<Something />
</main>
);
}tsx
What this example is not
Whatever the example quietly assumes: a fixed height, a parent that scrolls, a route that exists. Say it, so nobody copies the example and gets the assumption without it.