| title | SplitLayout |
|---|---|
| parent | Surfaces, shells and resources |
| grand_parent | Components |
{: .no_toc }
Two mounts, side by side, with a divider.
import { BUILTIN_LAYOUTS } from '@textui/widgets';
const split = BUILTIN_LAYOUTS.find((layout) => layout.name === 'split');| Prop | Type | Default | |
|---|---|---|---|
surface |
SurfaceName |
required | |
mounts |
Mount[] |
required | |
state |
SurfaceState |
required |
Plus everything on BoxProps.
The surface-level Splitter. Where the divide sits is surface state rather than a prop, so it survives the mounts changing and can be moved by a command.
More than two mounts and the extras are stacked into the second pane.
- Splitter - the plain component
- StackLayout - no divide