# @seveibar/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 version **0.3.7** (published 2020-12-14) · 0 weekly downloads

## Install

```sh
npm install @seveibar/react-resize-panel
pnpm add @seveibar/react-resize-panel
yarn add @seveibar/react-resize-panel
bun add @seveibar/react-resize-panel
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.7 |
| Published | 2020-12-14 |
| First published | 2020-12-14 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 297.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | seveibar |

## Links

- npm: https://www.npmjs.com/package/@seveibar/react-resize-panel
- npm.io page: https://npm.io/package/@seveibar/react-resize-panel

## Dependencies (4)

- [cash-dom](https://npm.io/package/cash-dom.md) ^4.1.5
- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [lodash.debounce](https://npm.io/package/lodash.debounce.md) ^4.0.8
- [react-draggable](https://npm.io/package/react-draggable.md) ^4.0.3

## Recent versions

- 0.3.7 (latest) — 2020-12-14
- 0.3.6 — 2020-12-14

## README

# 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). 

![Resize panel demo](demo/public/demo.gif)

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

## Getting started

Install the package:

```bash
yarn install react-resize-panel
```

Import component:

```javascript
import ResizePanel from "react-resize-panel";
```

Wrap the DIV you want to make resizable:

```js
<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:

```js
<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](https://github.com/bjgrosse/react-resize-panel/blob/master/browserstack-logo-600x315.png)](https://browserstack.com)

## License

[MIT](LICENSE).

---
_Source: https://npm.io/package/@seveibar/react-resize-panel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
