Options (all opt-in and compatible)
-
lockBodyScroll(boolean, default:true)- Locks body scroll while the modal is open.
-
injectResponsiveStyles(boolean, default:false)- Injects a CSS variable
--pf-popup-heightand uses fallback for iOS (dvh).
- Injects a CSS variable
-
forceMobileViewport(boolean, default:false)- Forces "mobile" width on the host even on desktop.
- Use with
mobileMaxWidth(e.g.,480).
-
mobileMaxWidth(number|null, default:null)- Maximum width of the modal container when
forceMobileViewportis active.
- Maximum width of the modal container when
-
showCloseButton(boolean|null, default:null)null: follows existingautoOpenValidation.true/false: forces showing/hiding the close button.
-
optimizeResizeUpdates(boolean, default:true)- 150ms debounce for layout calculations on
resize.
- 150ms debounce for layout calculations on
-
strictLang(boolean, default:false) andallowedLangs(array, default:["pt","en","es"])- When active, normalizes the received language to the allowed list.
Other existing options:
enableRedirect(boolean) -- reserved; your front-end does not emit redirect.allowedPostMessageOrigins(string[]) -- defaults tokycFrontOrigin.
See Also
- SDK Methods - Methods reference
- Features - Features documentation
- Services - Actions documentation