Components / UI components / Layout
Resizable layoutsExperimental alpha
SplitPane
Two controlled panes with keyboard resizing and a responsive stacked layout.
SplitPane preview
Loading example…
Interactions use local sample data.
Usage and props
Keep sizes in application state and supply bounded container space. Collapsing a pane unmounts its content; persist drafts above it.
Supported inputs
This is the public signature used by this example. Open Code to see how the values and callbacks fit together.
label · primary · secondary · sizes: readonly [number, number] · onSizesChange? · presentation? · orientation? · disabled?These are the main props for the example. The package's TypeScript declarations include the full API.