Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 963 Bytes

File metadata and controls

37 lines (26 loc) · 963 Bytes
title SplitLayout
parent Surfaces, shells and resources
grand_parent Components

SplitLayout

{: .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');

Props

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.

See also