freya_elements::elements::rect

Constant height

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

Specify the height for the given element.

See syntax in Size Units.

ยงExample

fn app() -> Element {
    rsx!(
        rect {
            background: "red",
            height: "50",
            width: "15",
        }
    )
}