Skip to content

Documentation / @frak-labs/components / ButtonWallet

Function: ButtonWallet()

ButtonWallet(args): Element | null

Defined in: sdk/components/src/components/ButtonWallet/ButtonWallet.tsx:93

Button to open wallet modal

Parameters

args

classname?

string = ""

Classname to apply to the button

placement?

string

targetInteraction?

"referral" | "create_referral_link" | "purchase" | `custom.${string}`

Target interaction behind this sharing action (will be used to get the right reward to display)

useReward?

boolean

Do we display the reward on the button?

Default Value

false

Returns

Element | null

The wallet button with <button> tag

Examples

Basic usage:

<frak-button-wallet></frak-button-wallet>

Using a custom class:

<frak-button-wallet classname="button button-primary"></frak-button-wallet>

Using reward information:

<frak-button-wallet use-reward></frak-button-wallet>

Using reward information for specific reward:

<frak-button-wallet use-reward target-interaction="custom.customerMeeting"></frak-button-wallet>

Using placement:

<frak-button-wallet placement="hero-wallet"></frak-button-wallet>

See