# vue-resize-next

> vue-resize-next, a resize component based on Vue 3.x

Latest version **1.0.0** (published 2021-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-resize-next
pnpm add vue-resize-next
yarn add vue-resize-next
bun add vue-resize-next
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-08-14 |
| First published | 2021-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 112 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | laor |
| Maintainers | laoriy |
| Keywords | vue-resize-next, vue-resize, resize, resize-next |

## Links

- npm: https://www.npmjs.com/package/vue-resize-next
- Repository: https://github.com/laoriy/vue-resize-next
- Homepage: https://github.com/laoriy/vue-resize-next#readme
- Issues: https://github.com/laoriy/vue-resize-next/issues
- npm.io page: https://npm.io/package/vue-resize-next

## Dependencies (1)

- [vue](https://npm.io/package/vue.md) ^3.1.1

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-08-14

## README

# vue-resize-next

Detect DOM element resizing based on Vue3.x

<br>

# Installation

```
npm install --save vue-resize-next

with yarn

npm install --save vue-resize-next
```

Then import the package and install it into Vue:

```javascript
import VueResize from 'vue-resize-next';
app.use(VueResize);
// or in a component
// components: { VueResize }
```

# Usage

Add the `<vue-resize>` inside a DOM element and make its position to something other than `'static'` (for example `'relative'`), so that the observer can fill it.

Listen to the `notify` event that is fired when the above DOM element is resized.

# Example

```html
<template>
    <div class="demo">
        <h1>Hello world!</h1>
        <vue-resize @notify="handleResize" />
    </div>
</template>

<script>
    export default {
        methods: {
            handleResize({ width, height }) {
                console.log('resized', width, height);
            },
        },
    };
</script>

<style scoped>
    .demo {
        position: relative;
    }
</style>
```

---

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