applying custom class in vuejs class api code example Example: vue class binding <div v-bind:class="[{ active: isActive }, errorClass]"></div>