<template> <h1 :class="{ 'its-red' : shouldBeRed }">Hola</h1> </template> <script> export default { props: { shouldBeRed: { type: Boolean, required: true } } } </script> <style> </style>