Function svg

Source
pub fn svg(bytes: Bytes) -> Svg
Expand description

Use svg() to render SVG in your app.

See the available methods in Svg.

fn app() -> impl IntoElement {
    svg(Bytes::from_static(include_bytes!("../../../../logo.svg")))
}