Constant freya_elements::elements::svg::fill

source ·
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,
        }
    )
}