Skip to content

Documentation / @frak-labs/components / OpenInAppButton

Function: OpenInAppButton()

OpenInAppButton(args): Element | null

Defined in: sdk/components/src/components/OpenInAppButton/OpenInAppButton.tsx:34

Button to open the Frak Wallet mobile app via deep link

Parameters

args

classname?

string = ""

Classname to apply to the button

placement?

string

text?

string = "Open in App"

Text to display on the button

Default Value

"Open in App"

Returns

Element | null

The open in app button with <button> tag (only renders on mobile devices)

Examples

Basic usage:

<frak-open-in-app></frak-open-in-app>

Using a custom text:

<frak-open-in-app text="Get the App"></frak-open-in-app>

With login action:

<frak-open-in-app classname="button button-primary"></frak-open-in-app>