Constant freya_elements::elements::svg::stroke
source · pub const stroke: (&'static str, Option<&'static str>, bool);
Expand description
The stroke
attributes allows you to specify the fill or stroke color for the svg
.
You can learn about the syntax of this attribute in Color Syntax
.
§Example
fn app() -> Element {
let svg_content = include_str!("../../../../examples/settings.svg");
rsx!(
svg {
stroke: "red",
width: "100%",
height: "100%",
svg_content,
}
)
}