Constant freya_elements::elements::rect::background

source ·
pub const background: AttributeDescription;
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"
        }
    )
}