Components / VStack

VStack

Lays children out in a column.

Example

The component itself, running in WebAssembly, beside its code in a playground. Try it.

Code

use ravenrs::prelude::*;

fn v_stack() -> impl View {
    VStack::new((Text::new("First"), Text::new("Second"), Button::new("Continue"))).spacing(12.0)
}

Open in the playground, with every example →

Full API of VStack →