vue js get width div by id code example Example: vue js get width of element this.$refs.refName.clientWidth