Constant freya::elements::rect::background_opacity
source · pub const background_opacity: (&'static str, Option<&'static str>, bool);
Expand description
Specify the opacity of an element’s background color.
§Example
fn app() -> Element {
rsx!(
rect {
background: "red",
background_opacity: "0.5"
}
)
}