Widget

A gift flow your product can open in one breath.

Drop in one script, pass the context you already know, and open a focused x.gifts creation moment without sending people away from the surface they trust.

Partner checkout

x.gifts Widget

Ready

Context loaded

Create a USDC gift on Base.

The flow opens prepared. The sender only decides the gift.

Entry

base

Token

USDC

Source

checkout

Create Gift

Embed

One quiet line. One prepared moment.

The widget stays invisible until your product asks for it. Then it opens with the network, token, and campaign already in place.

01

Install

Place the script once.

02

Prepare

Pass the entry and token.

03

Open

Let x.gifts handle creation.

Install

Place the script

<script
  src="https://x.gifts/js/widget/v1.js"
  data-client-key="YOUR_WIDGET_CLIENT_KEY"
></script>

<button data-xgifts-open data-entry="base">
  Create gift
</button>

Launch

Open with context

window.xgifts.open({
  entry: 'base',
  token: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
  symbol: 'USDC',
});

Control

The host chooses the context.

x.gifts keeps the ceremony. Your product decides where it begins.

Client key

Keeps the embedded surface scoped to the chains and environments your product supports.

Entry

Starts people in the right create flow instead of asking them to find the right network.

Token context

Carries token, asset, source, and campaign data into the gift moment.

Intent

Make the gift feel native, then let it feel special.

Any trigger

Button, card, claim reward, token page, or campaign action.

One ceremony

Recipients meet the same polished gift flow every time.

Ready state

The create screen opens prepared instead of empty.