Constant freya::elements::rect::background
pub const background: (&'static str, Option<&'static str>, bool);
Expand description
Specify a color as the background of an element.
You can learn about the syntax of this attribute in Color Syntax
.
ยงExample
fn app() -> Element {
rsx!(
rect {
background: "red"
}
)
}