
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
@thinkpixellab/vue-resize-directive
Advanced tools
Vue directive to detect HTML resize events based on CSS Element Queries with debouncing and throttling capacity.
![]()
Use this option when you need to receive all the resize events.
The onResize function will be called each time the element resizes with the corresponding HTML element as only argument.
<div v-resize="onResize">
Use throttle when you need to rate-limit resize events frequency.
<div v-resize:throttle="onResize">
<div v-resize:throttle.100="onResize">
Use debounce when you only need to be notified when resize events ends.
<div v-resize:debounce="onResize">
<div v-resize:debounce.50="onResize">
Use this option to receive the resize callback right after the element is mounted on the DOM and visible.
<div v-resize.initial="onResize">
npm install vue-resize-directive --save
// ES6
import resize from 'vue-resize-directive'
//...
export default {
directives: {
resize,
}
//...
// ES5
var resize = require('vue-resize-directive')
<script> IncludeJust include Vueresize.js after ResizeSensor.js from css-element-queries and lodash.js script.
FAQs
Vue.js 2.0 directive to detect element resize
The npm package @thinkpixellab/vue-resize-directive receives a total of 2 weekly downloads. As such, @thinkpixellab/vue-resize-directive popularity was classified as not popular.
We found that @thinkpixellab/vue-resize-directive demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.