# simple-resizer

> This project was created as an Interview for unnamed company. It's a simple React component that allows to the user increase or decrease the width or height of a container wrapping any child component passed to the Resizer component.

Latest version **0.0.2** (published 2022-08-28) · 0 weekly downloads

## Install

```sh
npm install simple-resizer
pnpm add simple-resizer
yarn add simple-resizer
bun add simple-resizer
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2022-08-28 |
| First published | 2022-08-28 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 14.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | 100peck |

## Links

- npm: https://www.npmjs.com/package/simple-resizer
- Repository: https://github.com/100peck/resizable
- Homepage: https://github.com/100peck/resizable#readme
- Issues: https://github.com/100peck/resizable/issues
- npm.io page: https://npm.io/package/simple-resizer

## Dependencies (11)

- [react](https://npm.io/package/react.md) ^18.2.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0
- [typescript](https://npm.io/package/typescript.md) ^4.4.2
- [@types/jest](https://npm.io/package/@types/jest.md) ^27.0.1
- [@types/node](https://npm.io/package/@types/node.md) ^16.7.13
- [@types/react](https://npm.io/package/@types/react.md) ^18.0.0
- [react-scripts](https://npm.io/package/react-scripts.md) 5.0.1
- [@types/react-dom](https://npm.io/package/@types/react-dom.md) ^18.0.0
- [@testing-library/react](https://npm.io/package/@testing-library/react.md) ^13.0.0
- [@testing-library/jest-dom](https://npm.io/package/@testing-library/jest-dom.md) ^5.14.1
- [@testing-library/user-event](https://npm.io/package/@testing-library/user-event.md) ^13.2.1

## Recent versions

- 0.0.2 (latest) — 2022-08-28
- 0.0.1 — 2022-08-28

## README

# React resize component

This project was created as an Interview for unnamed company. It's a simple React component that allows to the user increase or decrease the width or height of a container wrapping any child component passed to the Resizer component. 

## Sample usage

```javascript
<Resizable initialSize={{x: 250, y: 250}}>
    <div>Random lorem ipsum text.</div>
</Resizable>
```

## Options

You can pass other options along with height and width:

* `initialSize`: initial width and height of the resizeable container. 
* `className`: class name for custom css.
* `icon`: user can pass icon or text for handles.

---
_Source: https://npm.io/package/simple-resizer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
