Splitter is utilized to separate and resize panels.
import { SplitterModule } from 'primeng/splitter';Splitter requires two SplitterPanel components as children which are displayed horizontally by default.
When no panelSizes are defined, panels are split 50/50, use the panelSizes property to give relative widths e.g. [25, 75].
Panels are displayed as stacked by setting the layout to vertical.
Splitters can be combined to create advanced layouts.
Splitter bar defines separator as the role with aria-orientation set to either horizontal or vertical.
| Key | Function |
|---|---|
| tab | Moves focus through the splitter bar. |
| down arrow | Moves a vertical splitter down. |
| up arrow | Moves a vertical splitter up. |
| left arrow | Moves a vertical splitter to the left. |
| right arrow | Moves a vertical splitter to the right. |