add a class :class vue code example Example: dynamically bind class name in vue This is how you add dynamic classes in Vue.