# SwapBox

The SwapBox widget enables a seamless and easy-to-use trading experience for any web app powered by SyncSwap.

## Integration

You can easily integrate the SyncSwap SwapBox into your web apps with the iframe.

```tsx
<iframe
  src={`https://service.syncswap.net/widget?overlay=true&dark=true`}
/>
```

### Params

* overlay (boolean) - whether the background overlay is enabled
* dark (boolean) - whether the dark theme is enabled
* inputCurrency (address) - the input token
* outputCurrency (address) - the output token


---

# 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.syncswap.xyz/syncswap/integration/swapbox.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.
