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:
Test hover, focus, disabled, loading, and mobile states. Preserve visible focus indicators and sufficient color contrast.
Pass translated interface copy through labels:
Common label keys
| Area | Keys |
|---|
| Primary actions | triggerButton, generateButton, close, tryAgain |
| Upload | uploadHint, addPhoto, selectPhoto, removePhoto, invalidFileType, maxFileSize |
| Processing | processing, preparingTryOn, processingTryOn, uploadingPhoto, generating |
| Authentication | loginRequired, loginRequiredError, loginUploadRequired, loginAction |
| Limits and safety | dailyLimitReached, maxPhotos, maxConcurrentTryOns, imageRejected, safetyFiltered |
| Results | tryOnResult, viewTryOnResult, downloadImage, successTitle, successMessageGallery |
| Terms | termsTitle, termsShowMore, termsShowLess, termsAccept |
| Email | emailLabel, 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.
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.