Constant freya::elements::image::max_height
pub const max_height: (&'static str, Option<&'static str>, bool);
Expand description
§max_width & max_height
rect
supports specifying a maximum width and height.
See syntax for Size Units
.
§Usage
fn app() -> Element {
rsx!(
rect {
background: "red",
max_width: "50%",
max_height: "50%",
width: "500",
height: "500",
}
)
}