add ckass to element vuejs code example Example: bind class <div v-bind:class="{ active: isActive }"></div>