# SbSplitPane A resizable split container that divides space between two panes. The divider can be dragged to adjust the split ratio. ## Parameters | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | Orientation | SbSplitOrientation | Horizontal | Split direction | | SplitPosition | double | 50 | Initial split position (percentage) | | MinFirstPane | double | 10 | Minimum first pane size (percentage) | | MinSecondPane | double | 10 | Minimum second pane size (percentage) | | Collapsible | bool | false | Whether panes can be collapsed (reserved) | | Class | string? | null | Additional CSS classes | ## Events | Event | Type | Description | |-------|------|-------------| | SplitPositionChanged | EventCallback | Fired when split position changes | ## Templates / Slots | Slot | Type | Description | |------|------|-------------| | FirstPane | RenderFragment? | Content for the first (left/top) pane | | SecondPane | RenderFragment? | Content for the second (right/bottom) pane | ## Orientation Options | Value | Description | |-------|-------------| | Horizontal | Left/right split (vertical divider) | | Vertical | Top/bottom split (horizontal divider) | ## CSS Classes - `sb-split-pane` - Base class - `sb-split-pane--horizontal` - Horizontal orientation - `sb-split-pane--vertical` - Vertical orientation - `sb-split-pane__panel` - Panel container - `sb-split-pane__panel--first` - First panel - `sb-split-pane__panel--second` - Second panel - `sb-split-pane__divider` - Divider element - `sb-split-pane__divider--dragging` - During resize - `sb-split-pane__divider-handle` - Visual handle ## Examples ### Basic Horizontal Split ```razor
Left Panel
Right Panel
``` ### Vertical Split ```razor
Top Panel
Bottom Panel
``` ### Custom Split Position ```razor
Main Content (70%)
``` ### With Minimum Sizes ```razor
Min 20%
Min 30%
``` ### Controlled Split Position ```razor
First (@splitPosition.ToString("F0")%)
Second (@((100 - splitPosition).ToString("F0"))%)
Reset to 50/50 @code { private double splitPosition = 50; } ``` ### IDE-Style Layout ```razor
Code Editor Area
Terminal output... No problems detected Build output...
``` ### Nested Splits ```razor
Main Content
``` ### Email Client Layout ```razor @if (selectedEmail != null) { } else { } ```