detect container resizing.
- event based
- no window.onresize
- no interval/timeout detection
- no CSS modifications
- no Javascript-Framework dependency
<template>
<div>
<resize-sensor @resize="resize"></resize-sensor>
</div>
</template>
Request an initial size event.
A size object { width, height }
Same browser support as Vue.js 2
since v2.x, the script is exported as esm.