Constant freya::elements::svg::fill

pub const fill: (&'static str, Option<&'static str>, bool);
Expand description

The fill attributes allows you to specify the fill 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 {
            fill: "red",
            width: "100%",
            height: "100%",
            svg_content,
        }
    )
}