Skip to content

Embed

A page of another site in a locked frame.

Example

Show code
use zeyn::prelude::*;

pub fn overview(_ctx: &Ctx) -> Node {
    Embed::url("https://www.openstreetmap.org/export/embed.html?bbox=28.95,41.0,29.05,41.05")
        .title("Map of the old town")
        .aspect(16, 9)
        .click_to_load("")
        .notice("The map is served by OpenStreetMap.")
        .into()
}