Skip to content

Stack

Nodes one under the other with a gap.

Example

Information: First

Success: Second

Warning: Third

Show code
use zeyn::prelude::*;

pub fn overview(_ctx: &Ctx) -> Node {
    Stack::new()
        .add(Alert::info("First"))
        .add(Alert::success("Second"))
        .add(Alert::warning("Third"))
        .into()
}