Constant freya_elements::elements::svg::svg_content
source · pub const svg_content: (&'static str, Option<&'static str>, bool);
Expand description
The svg_content
attribute lets you provide SVG content as a string.
This is useful for including SVG content directly or from external files.
§Example
fn app() -> Element {
let svg_content = include_str!("../../../../examples/settings.svg");
rsx!(
svg {
width: "100%",
height: "100%",
svg_content,
}
)
}