0.3.15 • Published 5 years ago

@lgrasso/react-resize-panel v0.3.15

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

react-resize-panel

current unsupported use this instead

https://www.npmjs.com/package/react-resize-panel

<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>

Notes

Tests on all modern browsers performed via BrowserStack.

BrowserStack.com

License

MIT.

0.3.15

5 years ago

0.3.14

5 years ago

0.3.13

5 years ago

0.3.9

5 years ago

0.3.8

5 years ago

0.3.7

5 years ago

0.3.12

5 years ago

0.3.11

5 years ago

0.3.10

5 years ago

0.3.6-a

5 years ago