1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use gpui::{div, Div};

use crate::StyledExt;

/// Horizontally stacks elements.
///
/// Sets `flex()`, `flex_row()`, `items_center()`
pub fn h_stack() -> Div {
    div().h_flex()
}

/// Vertically stacks elements.
///
/// Sets `flex()`, `flex_col()`
pub fn v_stack() -> Div {
    div().v_flex()
}