Skip to main content

vstack

Macro vstack 

Source
macro_rules! vstack {
    (gap: $gap:expr; $($child:expr),* $(,)?) => { ... };
    ($($child:expr),* $(,)?) => { ... };
}
Expand description

Create a vertical stack with children

§Examples

use revue::prelude::*;

let view = vstack![
    Text::heading("Title"),
    Text::new("Content"),
];

// With gap
let view = vstack![gap: 2;
    Text::new("Line 1"),
    Text::new("Line 2"),
];