pub fn NetworkImage(_: NetworkImageProps) -> Element
Expand description
Image component that automatically fetches and caches remote (HTTP) images.
§Example
fn app() -> Element {
rsx!(
NetworkImage {
width: "100%",
height: "100%",
url: "https://raw.githubusercontent.com/marc2332/freya/refs/heads/main/examples/rust_logo.png".parse::<Url>().unwrap()
}
)
}
§Preview
