vue js set height of element code example Example: vue js get width of element this.$refs.refName.clientWidth