Skip to main content

stack

Function stack 

Source
pub fn stack<H: UiHost, F, I>(children: F) -> UiBuilder<StackBox<H, F>>
where F: FnOnce(&mut ElementContext<'_, H>) -> I, I: IntoIterator, I::Item: IntoUiElement<H>,
Expand description

Returns a patchable stack layout builder.

Usage:

  • ui::stack(|cx| vec![...]).inset(Space::N2).into_element(cx)