freya_elements::elements::image

Constant max_height

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

Specify a maximum height for the given element.

See syntax for Size Units.

ยงExample

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