Function freya::components::NetworkImage
source · pub fn NetworkImage(props: NetworkImageProps) -> Result<VNode, RenderError>
Expand description
Image component that automatically fetches and caches remote (HTTP) images.
§Example
fn app() -> Element {
rsx!(
NetworkImage {
url: "https://raw.githubusercontent.com/jigsawpieces/dog-api-images/main/greyhound/Cordelia.jpg".parse::<Url>().unwrap()
}
)
}