Skip to main content
The widget inherits storefront button styles where possible. Use initialization fields for placement and copy, then CSS variables for deliberate visual overrides.

Position the overlay

Supported values are top-right, top-left, bottom-right, and bottom-left. Fine-tune spacing on the mounted container:

Style the button

Test hover, focus, disabled, loading, and mobile states. Preserve visible focus indicators and sufficient color contrast.

Configure labels

Pass translated interface copy through labels:

Common label keys

AreaKeys
Primary actionstriggerButton, generateButton, close, tryAgain
UploaduploadHint, addPhoto, selectPhoto, removePhoto, invalidFileType, maxFileSize
Processingprocessing, preparingTryOn, processingTryOn, uploadingPhoto, generating
AuthenticationloginRequired, loginRequiredError, loginUploadRequired, loginAction
Limits and safetydailyLimitReached, maxPhotos, maxConcurrentTryOns, imageRejected, safetyFiltered
ResultstryOnResult, viewTryOnResult, downloadImage, successTitle, successMessageGallery
TermstermsTitle, termsShowMore, termsShowLess, termsAccept
EmailemailLabel, emailOptional, emailPlaceholder, emailRequired, emailInvalid
Some messages accept placeholders:
  • maxFileSize: {maxSizeMB}
  • maxPhotos: {maxPhotos}
  • maxConcurrentTryOns: {maxConcurrent}
  • showAlternateImage: {label}
The loader does not provide an automatic translation registry for custom sites. Pass the appropriate labels when the storefront language changes.

Configure terms

Keep legal and disclaimer content in terms, not labels.

Inline HTML

Host-page selector

Use fullSelector when the storefront already owns the legal HTML. The element may stay hidden; the widget reads its innerHTML.
Sanitize any merchant-managed HTML before placing it in the page or passing it to fullHtml. The browser renders this content in the shopper interface.

Copy principles

  • Describe the output as an AI visualization, not a sizing guarantee.
  • State that actual fit, color, and proportions may differ.
  • Tell shoppers what photo works best.
  • Explain age, image-rights, retention, and prohibited-use requirements.
  • Keep error messages actionable.
  • Review translated legal text independently from interface labels.
See Privacy and consent for data-handling guidance.