Components / Grid
Grid
Equal-width columns that wrap into rows.
Example
The component itself, running in WebAssembly, beside its code in a playground. Try it.
Code
use ravenrs::prelude::*;
fn grid() -> impl View {
let cell = |n: u32| Card::new(Text::new(n.to_string())).padding(16.0);
Grid::new(3, (cell(1), cell(2), cell(3), cell(4), cell(5), cell(6))).spacing(8.0)
}