MUI Extended UI Components

Split Pane


Splits a container into 2 parts with resizable divider

Usage

import { SplitPane, SplitPaneProps } from "mui-extended"; const props: SplitPaneProps = { minSize: 180; maxSize: 500; } const splitPaneComponent = ( <SplitPane {...props}> <Child1 /> <child2 /> </SplitPane> );

Usage Notes

  • Must exactly have 2 child components
  • Rewritten from a open-source package react-split-pane

Layout component uses SplitPane in desktop mode

Features

  • horizontal and verticle split
  • turn on / off resizing
  • min and max size for resizing
  • all sizes are appplied on primary child , can be first or second
  • controlled sizes
  • hide only primary

Check SplitPaneProps type for all available props

Demo
Horizonal Split with second child as primary pane
Pane 1
Pane 2
Does this page need improvements?
Edit This Page in GitHub
Did this page help you?
Provide feedback in the GitHub Discussion Page
Need More help?

Write an email to opensource@sodaru.com