Constant freya_elements::svg::fill

source ·
pub const fill: AttributeDescription;
Expand description

The fill and 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 {
            fill: "red",
            width: "100%",
            height: "100%",
            svg_content,
        }
    )
}