SplitViewProps
Defined in: react/components/layout/split-view.tsx:64
Props for SplitView.
Properties
Section titled “Properties”controls?
Section titled “controls?”
optionalcontrols?: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.
newPane?
Section titled “newPane?”
optionalnewPane?: (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.
Parameters
Section titled “Parameters”sourceId
Section titled “sourceId”string
Returns
Section titled “Returns”ReactNode
onChange?
Section titled “onChange?”
optionalonChange?: (root) =>void
Defined in: react/components/layout/split-view.tsx:68
Fired with a fresh tree whenever the layout changes (resize/split/close).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
root:
SplitNode
Defined in: react/components/layout/split-view.tsx:66
Initial tree (uncontrolled). Resizing mutates internal state.