react-window-splitter
A full featured window splitter for React.
npm install react-window-splitter yarn add react-window-splitter pnpm add react-window-splitter
import { PanelGroup, Panel, PanelResizer } from "react-window-splitter"; function Example() { return ( <PanelGroup> <Panel min="130px" max="400px" /> <PanelResizer /> <Panel min="130px" /> </PanelGroup> ); }
While not required for the simple case, for anything more complex you will
need to add an id
prop to your panels and handles.
This is so that the component can tell all of the components apart during layout and rendering._createMdxContent
Features that require id
: