Components / SplitPanes

SplitPanes

Any number of panes with a bar between each two, and limits.

Example

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

Code

use ravenrs::prelude::*;

fn split_panes() -> impl View {
    SplitPanes::horizontal()
        .pane(SplitPane::new(Text::new("Sessions").padding(16.0)).size(180.0).range(120.0, 260.0))
        .pane(SplitPane::new(Text::new("Receipt").padding(16.0)).range(120.0, f32::MAX))
        .pane(SplitPane::new(Text::new("Activity").padding(16.0)).size(180.0).range(120.0, 260.0))
        .height(190.0)
}

Open in the playground, with every example →

Full API of SplitPanes →