stack.rs
1use gpui::{div, Div};
2
3use crate::StyledExt;
4
5/// Horizontally stacks elements.
6///
7/// Sets `flex()`, `flex_row()`, `items_center()`
8pub fn h_stack() -> Div {
9 div().h_flex()
10}
11
12/// Vertically stacks elements.
13///
14/// Sets `flex()`, `flex_col()`
15pub fn v_stack() -> Div {
16 div().v_flex()
17}