# O3 Widget

Customize the [O3 Swap Widget](https://o3swap.com/widget) preset and integrate it into your website without any additional coding work, and allow your users to swap tokens across chains without leaving your dApp!&#x20;

#### See what you can customize below:

* Choose between a horizontal or vertical view that best fits your website UI.

<figure><img src="/files/PB7H3vcdEQ8AoHSSpUHz" alt=""><figcaption></figcaption></figure>

![](/files/XdHYRY8XtWyY4oUc4SPJ)

* Select the language for the widget. Currently, English and Chinese are supported.

<div align="left"><figure><img src="/files/f1IWqYownjxVnjozHyZZ" alt=""><figcaption></figcaption></figure></div>

* Pick a theme color that matches your project's branding style. You can customize any color or choose from a default set.

<figure><img src="/files/ZSikgZMlUTZG1TlBSJEl" alt=""><figcaption></figcaption></figure>

* Set the default option for the widget. You can paste the chain ID and token address to specify the default source chain, source token, destination chain, and destination token.

<div align="left"><figure><img src="/files/1rNSxj0ATnXCXrzaGhWL" alt=""><figcaption></figcaption></figure></div>

Once all the [Presets](https://o3swap.com/widget) are configured, simply copy the code by clicking the button in the upper-right corner. The widget can be integrated with ease, and you can also customize the settings directly in the code.

<figure><img src="/files/4ukHWwQKFUgkpduph9e6" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.o3swap.com/for-developers/o3-widget.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
