vue-resize-sensor

detect container resizing

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
vue-resize-sensor
7652.0.05 years ago6 years agoMinified + gzip package size for vue-resize-sensor in KB

Readme

vue-resize-sensor
detect container resizing.
  • event based
  • no window.onresize
  • no interval/timeout detection
  • no CSS modifications
  • no Javascript-Framework dependency

Example

```
<resize-sensor @resize="resize"></resize-sensor>
```

API

props

initial Boolean

Request an initial size event.

events

@resize Object

A size object { width, height }

Browser support

Same browser support as Vue.js 2

Note

since v2.x, the script is exported as esm.

Credits

Franck Freiburger