SplitterPanel
This live example uses PanelManager and panel containers directly, without deck.gl.
SplitterPanel places the first child panel in one resizable pane and all remaining child panels in the other pane.
Usage
Use SplitterPanel when one primary panel should be compared with, or resized against, supporting panels.
import {SplitterPanel, type SplitterPanelProps} from '@deck.gl-community/panels';
Props
type SplitterPanelProps = {
panels: Record<string, Panel>;
id?: string;
title?: string;
theme?: 'inherit' | 'light' | 'dark' | 'invert';
orientation?: 'horizontal' | 'vertical';
initialSplit?: number;
editable?: boolean;
minSplit?: number;
maxSplit?: number;
onChange?: (split: number) => void;
onDragStart?: () => void;
onDragEnd?: () => void;
};
Remarks
horizontalrenders side-by-side panes and resizes the first pane by width.verticalrenders stacked panes and resizes the first pane by height.initialSplit,minSplit, andmaxSplitare ratios from0to1.- If only one child panel is supplied, it fills the content area without a splitter handle.