GitHub

Split Panel

Resizable split container with snap points and vertical mode.

<rhx-split-panel>

Examples

Horizontal

Sidebar

Navigation or filter panel. Drag the divider to resize.

Main Content

Primary content area. The end panel takes the remaining space.

Vertical

Editor

Code or text editing area.

Output

Console or preview area below the editor.

Snap Points

Drag and feel the snap points.

The divider snaps at 25%, 50%, and 75%.

Disabled

Fixed start panel (60%).

Fixed end panel (40%).

Properties

Property Type Default Description
rhx-position int 50 Initial divider position as a percentage (0-100)
rhx-vertical bool false Use vertical (top/bottom) layout instead of horizontal
rhx-snap string - Comma-separated snap point percentages (e.g. "25,50,75")
rhx-disabled bool false Prevents dragging the divider

Accessibility

  • The divider handle has role="separator" with aria-valuenow reflecting the current position.
  • Keyboard arrow keys (Left/Right or Up/Down) adjust the divider position.
  • When disabled, the divider is not focusable and does not respond to keyboard or pointer input.
  • Vertical mode sets aria-orientation="vertical" on the separator.