Skip to content

SplitViewProps

Defined in: react/components/layout/split-view.tsx:64

Props for SplitView.

optional controls?: boolean

Defined in: react/components/layout/split-view.tsx:74

Show a 1-row toolbar on each pane with split (/) and close () buttons. Split buttons appear only when SplitViewProps.newPane is given; close appears whenever more than one pane remains.


optional newPane?: (sourceId) => ReactNode

Defined in: react/components/layout/split-view.tsx:79

Builds the content for a freshly split-off pane, given the id of the pane that was split. Required for the split buttons to do anything.

string

ReactNode


optional onChange?: (root) => void

Defined in: react/components/layout/split-view.tsx:68

Fired with a fresh tree whenever the layout changes (resize/split/close).

SplitNode

void


root: SplitNode

Defined in: react/components/layout/split-view.tsx:66

Initial tree (uncontrolled). Resizing mutates internal state.