Constant freya::elements::rect::overflow

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

Specify how overflow should be handled.

Accepted values:

  • clip
  • none

ยงExample

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