New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@lgrasso/react-resize-panel

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lgrasso/react-resize-panel

A very simple resizable panel as a React component. Demo [here](https://bjgrosse.github.io/react-resize-panel/demo/public/index.html).

latest
Source
npmnpm
Version
0.3.15
Version published
Maintainers
1
Created
Source

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.

Keywords

resize

FAQs

Package last updated on 10 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts