Aller au contenu

Ce contenu n’est pas encore disponible dans votre langue.

The <frak-open-in-app> component renders a button that redirects users from in-app browsers (Instagram, TikTok, Facebook, etc.) to the device’s default browser. This ensures a better user experience for features like WebAuthn authentication that don’t work well in WebViews.

  • An initialized FrakSetup configuration object

More information about the FrakSetup object.

AttributeTypeDefaultDescription
textstring"Open in App"Text to display on the button.
placementstringPlacement ID for backend-driven configuration.
classnamestringCSS class names applied to the root element.
<frak-open-in-app></frak-open-in-app>
<frak-open-in-app text="Get the full experience"></frak-open-in-app>
<frak-open-in-app placement="mobile-landing"></frak-open-in-app>
<frak-open-in-app classname="button button-primary"></frak-open-in-app>

Target the component using the frak-open-in-app selector:

frak-open-in-app .override {
background-color: #1a1a1a;
color: #fff;
border-radius: 8px;
}

Component-specific CSS can also be configured via placements in the business dashboard.