Constant freya::elements::rect::visible_height

source ·
pub const visible_height: (&'static str, Option<&'static str>, bool);
Expand description

Specify the percentage of height to be visible.

§Usage
fn app() -> Element {
    rsx!(
        rect {
            background: "red",
            visible_height: "50%", // 250
            width: "500",
            height: "500",
        }
    )
}