Constant freya::elements::svg::opacity

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

Specify the opacity for this element.

Accepted values is from 0 to 1.

ยงExample

fn app() -> Element {
    rsx!(
        rect {
            opacity: "0.5",
            label {
                "Freya!"
            }
        }
    )
}