Find Similar Packages for react-resize-panel
react-resize-panelSimilar Packages:
Npm Package Weekly Downloads Trend
3 Years
🌟 Show real-time usage chart on react-resize-panel's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of react-resize-panel](https://npm-compare.com/img/npm-trend/THREE_YEARS/react-resize-panel.png)](https://npm-compare.com/react-resize-panel#timeRange=THREE_YEARS)
🌟 Show GitHub stars trend chart on react-resize-panel's README.md, just copy the code below.
## GitHub Stars Trend
[![GitHub Stars Trend of react-resize-panel](https://npm-compare.com/img/github-trend/react-resize-panel.png)](https://npm-compare.com/react-resize-panel)
Stat Detail
Package
Downloads
Stars
Size
Issues
Publish
License
react-resize-panel3,134---6 years ago-
README for react-resize-panel

react-resize-panel

A very simple resizable panel as a React component. Demo here.

Resize panel demo

<ResizePanel direction="e">
<div className="panel sidebar">left panel</div>
</ResizePanel>

Getting started

Install the package:

yarn install react-resize-panel

Import component:

import ResizePanel from "react-resize-panel";

Wrap the DIV you want to make resizable:

<ResizePanel direction="e">
    <div className="panel sidebar">left panel</div>
</ResizePanel>

The direction prop specifies which edge of the panel has the resize handle and whether the panel can be resized vertically or horizontally. Accepted values are: n | s | e | w.

Custom CSS classes can be specified for the resize handle and border:

<ResizePanel direction="e" handleClass="customHandle" borderClass="customResizeBorder">
    <div className="panel sidebar">left panel</div>
</ResizePanel>

License

MIT.