Components / HStack

HStack

Lays children out in a row.

Example

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

Code

use ravenrs::prelude::*;

fn h_stack() -> impl View {
    HStack::new((Text::new("First"), Text::new("Second"), Button::new("Continue")))
        .spacing(12.0)
        .align(Align::Center)
}

Open in the playground, with every example →

Full API of HStack →