vue add style to component code example Example: vue inline style bind <div v-bind:style="{ color: activeColor, fontSize: fontSize + 'px' }"></div>