Splitter

Splitter is utilized to separate and resize panels.

Splitter requires two SplitterPanel components as children which are displayed horizontally by default.

Panel 1
Panel 2

Splitter requires two SplitterPanel components as children which are displayed horizontally by default.

Panel 1
Panel 2
horizontal-demo

When no panelSizes are defined, panels are split 50/50, use the panelSizes property to give relative widths e.g. [25, 75].

Panel 1
Panel 2
size-demo

Panels are displayed as stacked by setting the layout to vertical.

Panel 1
Panel 2
vertical-demo

Splitters can be combined to create advanced layouts.

Panel 1
Panel 2
Panel 3
Panel 4
nested-demo

Screen Reader

Splitter bar defines separator as the role with aria-orientation set to either horizontal or vertical.

Keyboard Support

KeyFunction
tabMoves focus through the splitter bar.
down arrowMoves a vertical splitter down.
up arrowMoves a vertical splitter up.
left arrowMoves a vertical splitter to the left.
right arrowMoves a vertical splitter to the right.
ON THIS PAGE
Figma UI Kit
The official Figma UI Kit for Prime UI libraries, the essential resource for designing with PrimeOne components.
Learn More