resizable-panels-react
v2.0.8
Published
A simple react component to build resizable panels :D
Downloads
246
Readme
ResizablePanelsReact
A simple react component to create resizable panels :D
Props:
- bkcolor: set a background color
- displayDirection: its like flex direction, you can choose "row" for horizontal resizing or "column" for vertical resizing
- width: set a width for you component
- height: set a height for you component
- panelsSize: a array to set your panels sizes, if you have 2 panels
- sizeUnitMeasure: unit used to calculate the amount to resize (px or %)
- resizerColor: change resizer color
- resizerSize: change resizer size
Code sample on CodeSandBox: https://codesandbox.io/embed/8l8lpp5nk9?fontsize=14