Splitter

Splits the area into multiple horizontal or vertical sides.

When To Use

The Splitter component can be used to separate areas horizontally or vertically. You can freely drag the splitter to adjust the size of each side.

Basic

Panel 1
Panel 2

Vertical

Use vertical layout by setting orientation="vertical" prop to split panels horizontally (stacking them vertically). You can also set the initialSplit percentage.

Header (30%)
Body (70%)

Multiple Panels

You can nest Splitter components inside each other to create multiple panels grid layouts.

Sidebar
Editor
Terminal

API

Splitter

Property
Description
Type
Default

class

Additional CSS classes for the container. string -

orientation

The split orientation ("horizontal" or "vertical"). 'horizontal' | 'vertical' 'horizontal'

initialSplit

Initial percentage split for the first panel. number 50