Constant freya_elements::rect::direction
source · pub const direction: AttributeDescription;
Expand description
Control how the inner elements stack.
Accepted values:
vertical
(default)horizontal
§Usage
fn app() -> Element {
rsx!(
rect {
width: "100%",
height: "100%",
direction: "vertical",
rect {
width: "100%",
height: "50%",
background: "red"
},
rect {
width: "100%",
height: "50%",
background: "green"
}
}
)
}