Skip to main content

Basic usage

Minimal example

The simplest integration: a button that opens the widget with product data:

With multiple product images

Provide multiple images so customers can choose which angle to visualize:
productImage sets the primary image used for AI generation. productImages provides the full gallery displayed in the widget.

Preloading for instant open

Preload the widget iframe on page load so it opens instantly when clicked:

Using data attributes

Declarative approach using HTML data attributes:
The SDK auto-discovers the data attributes and merges them with any options passed to open().

With identity tracking

Associate visualizations with logged-in customers:

Dynamic product pages (SPA)

For single-page applications where products change without full page reloads: