# Widgets

Four ready-made pieces you can drop into any page, no coding needed.

HTML version: https://dyme.earth/affiliates/build/widgets

Widgets are small pages we host, which you show on your own page in an `<iframe>`. They run no scripts and set no cookies on your site, and each link in them carries your affiliate code in `_from`. The easiest way to get one is the builder at [dyme.earth/affiliates/build/widgets](https://dyme.earth/affiliates/build/widgets): enter your code and a place or hotel, and copy the snippet.

| Widget | Address | Height |
|---|---|---|
| Search box | `https://dyme.earth/embed/search?_from=CODE` (`layout=stacked` for a sidebar or a phone; one row needs 900px) | 116 (inline), 364 (stacked) |
| Hotel card | `https://dyme.earth/embed/hotel/{slug}?_from=CODE` | 374 |
| Hotel row | `https://dyme.earth/embed/hotels?destination=Lisbon&limit=4&_from=CODE` (`limit` 3 to 6) | 322 |
| Book on Dyme button | `https://dyme.earth/embed/button?_from=CODE` | 48 |

Set the iframe's `height` to the value above; the documents have a fixed height at every width. `theme=dark` on any widget. Widgets are cached for one hour.
