iframe Widget
The widget will allow you easily integrate a fully functional bridge UI into your application with only a few lines of code.
Embedding the Rhino.fi Widget (iframe)
You can easily embed the Rhino.fi Widget into any site using a simple <iframe>
. This allows you to integrate our widget without needing to install or bundle anything into your app.
Live Preview
See the widget in action:
⚡ Quick Start
You can either customize your widget visually using our playground or use the example code below directly.
Customize Your Theme
Use our playground to visually design and preview your widget, then copy the embed code.
Paste the following HTML code where you want the widget to appear:
Replace YOUR_API_KEY
with your actual Rhino.fi API key.
Reach out to us for an API key
We’ll get back to you as soon as possible!
Customization
You can customize the widget’s appearance using URL query parameters. Here’s a quick overview:
Query Param | Description | Example |
---|---|---|
apiKey | Required API key to authenticate | apiKey=YOUR_API_KEY |
mode | Widget mode (light or dark) | mode=dark |
theme | Theme configuration in JSON | theme={...} (URL-encoded JSON) |
chainIn | Default source chain | chainIn=ETHEREUM |
chainOut | Default destination chain | chainOut=BASE |
token | Default token | token=USDT |
recipient | Default recipient | recipient=0x0 |
amount | Default amount | amount=10 |
exclude | Exclude chains or tokens | exclude={...} (URL-encoded JSON) |
🎨 Theming
You can customize the appearance of the widget by passing a theme query param in URL-encoded JSON format.
Supported Theme Properties
Example with custom theme:
🔒 Excluding Chains or Tokens
You can control which chains and tokens are available in the widget by using the exclude
option. This allows you to fine-tune the user experience by disabling entire chains or specific tokens.
Exclude Option Type
How it works:
- To disable an entire chain, set its value to
false
. - To disable specific tokens for a chain, provide an array of token symbols to exclude.
Examples:
Disable a whole chain:
This will disable Ethereum entirely from the widget.
Disable specific tokens:
This will allow bridging from Ethereum but will hide USDT and USDC tokens.
Combined example:
This disables USDT on Ethereum and disables the Polygon chain entirely.
Note: Token symbols must match exactly as defined in the bridge configuration.