I'm using reusable code for my contact form, and there are two required fields. In the parent component, i use label as the name of the label tag. For an example, the label full name must have 'Full Name ' and the '' should be in blue color. I don't have any idea on how to do that. Appreciate if someone could help me.
InputField.vue
<template>
<label for="name">
{{ label }}
<span style="color:#0077FF"> *</span>
</label>
</template>
Contact.vue
<form id="contact-form" @submit.prevent="submitForm">
<InputField
v-model="fullName"
label="Full Name *"
placeholder="Your full name"
required
@handleChange="handleChangeName($event)"
/>
</form>