Constant freya::elements::rect::visible_width
source · pub const visible_width: (&'static str, Option<&'static str>, bool);
Expand description
Specify the percentage of width to be visible.
§Usage
fn app() -> Element {
rsx!(
rect {
background: "red",
visible_width: "50%", // 250
width: "500",
height: "500",
}
)
}