This is the parent component I want to send bind :class to two child component
<TextInput
:icon="['fa', 'user']"
type="text"
placeholder="Name"
v-model.trim="userDetails.buyer_name.$model"
:class="{
'is-invalid': $v.buyer_name.$error,
'is-valid': !$v.buyer_name.$invalid
}"
>
it's the child component here i want the to accept class as props
<template>
<div class="product-form">
<fa-icon class="icons" :icon="icon" ></fa-icon>
<input :type="type" :placeholder="placeholder" />
</div>
</template>
:error="$v.buyer_name.$error", :isValid="!$v.buyer_name.$invalid"
in child copment class has initialize ``` :class="{ 'is-invalid': error, 'is-valid': isValid }"``` – Jonasjonathan$data.$v
instead of just$v
, and try using all lowercase props. – Birthstone