Function freya::prelude::NetworkImage
source · pub fn NetworkImage(props: NetworkImageProps) -> Option<VNode>
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()
}
)
}